fix error log when reconnect cycle fails

This commit is contained in:
tiagosiebler
2022-09-17 11:05:20 +01:00
parent 4ccaf853b6
commit 08674ab2fa
2 changed files with 14 additions and 8 deletions

View File

@@ -358,8 +358,10 @@ export class WebsocketClient extends EventEmitter {
default:
this.logger.error(
`{context} due to unexpected response error: ${error.msg}`,
{ ...loggerCategory, wsKey }
`${context} due to unexpected response error: "${
error?.msg || error?.message || error
}"`,
{ ...loggerCategory, wsKey, error }
);
break;
}