mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
logging
This commit is contained in:
@@ -128,9 +128,9 @@ class WsRequestor extends BaseRequestor {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.closedByUs = true;
|
this.closedByUs = true;
|
||||||
|
this.logger.info('WsRequestor:close closing socket');
|
||||||
try {
|
try {
|
||||||
if (this.ws) {
|
if (this.ws) {
|
||||||
this.logger.info('WsRequestor:close closing socket');
|
|
||||||
this.ws.close();
|
this.ws.close();
|
||||||
this.ws.removeAllListeners();
|
this.ws.removeAllListeners();
|
||||||
}
|
}
|
||||||
@@ -194,10 +194,10 @@ class WsRequestor extends BaseRequestor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onOpen(ws) {
|
_onOpen(ws) {
|
||||||
|
this.logger.info({url: this.url}, 'WsRequestor - successfully connected');
|
||||||
if (this.ws) this.logger.info({old_ws: this.ws._socket.address()}, 'WsRequestor:_onOpen');
|
if (this.ws) this.logger.info({old_ws: this.ws._socket.address()}, 'WsRequestor:_onOpen');
|
||||||
assert(!this.ws);
|
assert(!this.ws);
|
||||||
this.emit('ready', ws);
|
this.emit('ready', ws);
|
||||||
this.logger.info({url: this.url}, 'WsRequestor - successfully connected');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onClose() {
|
_onClose() {
|
||||||
|
|||||||
Reference in New Issue
Block a user