From 4e4299bf3968533e04c5df84b4ffd309c6b0f88d Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 20 Jul 2021 15:47:55 +0300 Subject: [PATCH] GramJs: Log socket connection failure cause (#1299) --- src/lib/gramjs/network/MTProtoSender.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gramjs/network/MTProtoSender.js b/src/lib/gramjs/network/MTProtoSender.js index e80fcd9e..8d80168b 100644 --- a/src/lib/gramjs/network/MTProtoSender.js +++ b/src/lib/gramjs/network/MTProtoSender.js @@ -182,7 +182,7 @@ class MTProtoSender { if (this._updateCallback && attempt === 0) { this._updateCallback(new UpdateConnectionState(UpdateConnectionState.disconnected)); } - this._log.error(`WebSocket connection failed attempt: ${attempt + 1}`); + this._log.error(`WebSocket connection failed attempt: ${attempt + 1}. Cause: ${err.message}`); await Helpers.sleep(this._delay); } }