From c1001ad787bae46e5e127b780eaa5ded87699308 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 16 Aug 2018 14:33:19 -0600 Subject: [PATCH] Show full error on close --- client/sprinklersRpc/WebSocketRpcClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sprinklersRpc/WebSocketRpcClient.ts b/client/sprinklersRpc/WebSocketRpcClient.ts index 5ef5686..10a63bd 100644 --- a/client/sprinklersRpc/WebSocketRpcClient.ts +++ b/client/sprinklersRpc/WebSocketRpcClient.ts @@ -257,7 +257,7 @@ export class WebSocketRpcClient implements s.SprinklersRPC { }); private onClose(event: CloseEvent) { - log.info({ reason: event.reason, wasClean: event.wasClean }, + log.info({ event }, "disconnected from websocket"); this.onDisconnect(); this.reconnectTimer = window.setTimeout(this._reconnect, RECONNECT_TIMEOUT_MS);