mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
[CHORE] server: add logging when reconnect is triggered
This commit is contained in:
@@ -224,6 +224,7 @@ Server.prototype._checkActivity = function() {
|
||||
var delta = (Date.now() - this._lastLedgerClose);
|
||||
|
||||
if (delta > (1000 * 25)) {
|
||||
log.info('reconnect: activity delta:', delta);
|
||||
this.reconnect();
|
||||
}
|
||||
};
|
||||
@@ -267,6 +268,7 @@ Server.prototype._updateScore = function(type, data) {
|
||||
}
|
||||
|
||||
if (this._score > 1e3) {
|
||||
log.info('reconnect: score:', this._score);
|
||||
this.reconnect();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user