Replace console.log with an event

This commit is contained in:
Rafa de la Torre 2019-06-04 14:37:04 +02:00
parent 002a36bcfc
commit 5fec3a5cc1

View File

@ -105,7 +105,7 @@ CopyStreamQuery.prototype._transform = function(chunk, enc, cb) {
case code.ParameterStatus: case code.ParameterStatus:
case code.NoticeResponse: case code.NoticeResponse:
case code.NotificationResponse: case code.NotificationResponse:
console.log("Got an interspersed message: " + message); this.emit('warning', 'Got an interspersed message: ' + message);
break; break;
} }
offset += (length - Int32Len); offset += (length - Int32Len);