mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
more verbose accelerator websocket error logs
This commit is contained in:
parent
9a81db8e6c
commit
ffa582558b
@ -257,7 +257,11 @@ class AccelerationApi {
|
||||
});
|
||||
|
||||
this.ws.on('error', (error) => {
|
||||
logger.err(`Acceleration websocket error on ${this.websocketPath}: ` + error);
|
||||
let errMsg = `Acceleration websocket error on ${this.websocketPath}: ${error['code']}`;
|
||||
if (error['errors']) {
|
||||
errMsg += ' - ' + error['errors'].join(' - ');
|
||||
}
|
||||
logger.err(errMsg);
|
||||
this.ws = null;
|
||||
this.websocketConnected = false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user