Replace console.log with an event

pull/9/head
Rafa de la Torre 5 years ago
parent 002a36bcfc
commit 5fec3a5cc1

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

Loading…
Cancel
Save