From c404d1c7297826a4584cbb11750bd2be3e396468 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Sun, 16 Feb 2020 21:53:13 -0800 Subject: [PATCH] log exception and when we exhausted long polling pool --- libtextsecure/http-resources.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libtextsecure/http-resources.js b/libtextsecure/http-resources.js index 2e2b42a19..04de289cd 100644 --- a/libtextsecure/http-resources.js +++ b/libtextsecure/http-resources.js @@ -100,6 +100,7 @@ ); } catch (e) { // we'll try again anyway + window.log.error('http-resource pollServer error', e.code, e.message); } if (this.calledStop) { @@ -109,6 +110,10 @@ connected = false; // Exhausted all our snodes urls, trying again later from scratch setTimeout(() => { + window.log.info( + `Exhausted all our snodes urls, trying again in ${EXHAUSTED_SNODES_RETRY_DELAY / + 1000}s from scratch` + ); this.pollServer(); }, EXHAUSTED_SNODES_RETRY_DELAY); };