Skip to content

Commit

Permalink
Reduce logging severity
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Mar 23, 2024
1 parent a02d893 commit d6cb600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down

0 comments on commit d6cb600

Please sign in to comment.