From 867ecabfc03e75a7a863dc7bf425952ae096fb98 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Wed, 23 Jun 2021 07:59:13 +0930 Subject: [PATCH] chore: logging --- app/mothership/sockets/mothership.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/mothership/sockets/mothership.ts b/app/mothership/sockets/mothership.ts index 1bc0172f7..4cc1cd42c 100644 --- a/app/mothership/sockets/mothership.ts +++ b/app/mothership/sockets/mothership.ts @@ -103,6 +103,14 @@ export class MothershipSocket extends CustomSocket { const logger = this.logger; return async function (this: WebSocketWithHeartBeat, error: any) { try { + console.log({ + type: typeof error, + error, + keys: Object.keys(error), + code: error.code, + message: error.message + }); + const messageParts = error.split('Unexpected server response: '); const isHTTPError = messageParts.length !== 2;