From d6cb60012fd243a1c3f1033e8acd6c80264d65cf Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 23 Mar 2024 20:27:15 +0200 Subject: [PATCH] Reduce logging severity --- src/connection.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connection.js b/src/connection.js index 5130aed8..22c0d901 100644 --- a/src/connection.js +++ b/src/connection.js @@ -1102,9 +1102,9 @@ class Connection { disconnect(reason) { this._changeConnectStatus(Status.DISCONNECTING, reason); if (reason) { - log.warn('Disconnect was called because: ' + reason); + log.info('Disconnect was called because: ' + reason); } else { - log.info('Disconnect was called'); + log.debug('Disconnect was called'); } if (this.connected) { let pres = null; @@ -1122,7 +1122,7 @@ class Connection { ); this._proto._disconnect(pres); } else { - log.warn('Disconnect was called before Strophe connected to the server'); + log.debug('Disconnect was called before Strophe connected to the server'); this._proto._abortAllRequests(); this._doDisconnect(); }