[CHORE] server: add logging when reconnect is triggered

This commit is contained in:
Matthew Fettig
2014-07-22 10:46:17 -07:00
parent ac62a336ea
commit ef17cd86a8

View File

@@ -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();
}
};