YUKI Hiroshi
null+****@clear*****
Thu Apr 9 16:46:40 JST 2015
YUKI Hiroshi 2015-04-09 16:46:40 +0900 (Thu, 09 Apr 2015) New Revision: 72ccece59d341ea41329a4bbae8a7d61e1aa6b04 https://github.com/droonga/express-droonga/commit/72ccece59d341ea41329a4bbae8a7d61e1aa6b04 Message: Use "trace" as the log level of various messages Modified files: lib/droonga-protocol/connection-pool.js lib/droonga-protocol/connection.js Modified: lib/droonga-protocol/connection-pool.js (+2 -2) =================================================================== --- lib/droonga-protocol/connection-pool.js 2015-04-09 16:34:15 +0900 (6215b34) +++ lib/droonga-protocol/connection-pool.js 2015-04-09 16:46:40 +0900 (3ea4ea6) @@ -165,8 +165,8 @@ ConnectionPool.prototype = { return reject(error); } var result = JSON.parse(stdin.trim()); - this._logger.debug('express-droonga-report-live-engine-hosts:'); - this._logger.debug(result); + this._logger.trace('express-droonga-report-live-engine-hosts:'); + this._logger.trace(result); resolve(result.liveEngineNodes); }).bind(this)); }).bind(this)); Modified: lib/droonga-protocol/connection.js (+7 -7) =================================================================== --- lib/droonga-protocol/connection.js 2015-04-09 16:34:15 +0900 (df33dde) +++ lib/droonga-protocol/connection.js 2015-04-09 16:46:40 +0900 (8d3a3ee) @@ -125,7 +125,7 @@ Connection.prototype._initReceiver = function() { }).bind(this)); var tag = this.tag + '.message'; - this._logger.debug('Connection._initReceiver %d (%s): %d %d:', + this._logger.trace('Connection._initReceiver %d (%s): %d %d:', this._id, this.hostAndPort, receiver._id, this.receivePort, tag); this._receiver = receiver; @@ -141,14 +141,14 @@ Connection.prototype._handleMessage = function(envelope) { var inReplyTo = envelope.inReplyTo; if (inReplyTo) { delete this._sendingMessages[inReplyTo]; - this._logger.debug('Connection._handleMessage.reply %d (%s):', + this._logger.trace('Connection._handleMessage.reply %d (%s):', this._id, this.hostAndPort, envelope); var errorCode = envelope.statusCode; if (!errorCode || isSuccess(errorCode)) errorCode = null; this.emit('reply:' + inReplyTo, errorCode, envelope); } else { - this._logger.debug('Connection._handleMessage.message %d (%s):', + this._logger.trace('Connection._handleMessage.message %d (%s):', this._id, this.hostAndPort, envelope); this.emit(envelope.type, envelope); } @@ -210,7 +210,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { } if (!this.receivePort) { - this._logger.debug('Connection.emitMessage %d (%s): ' + + this._logger.trace('Connection.emitMessage %d (%s): ' + 'Receiver is not initialized yet. ' + 'Given message will be sent later.', this._id, this.hostAndPort); @@ -219,7 +219,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { } var id = createId(); - this._logger.debug('Connection.emitMessage %d (%s):', + this._logger.trace('Connection.emitMessage %d (%s):', this._id, this.hostAndPort); var from = this.getRouteToSelf(options); var envelope = { @@ -238,7 +238,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { var event = 'reply:' + id; var timeoutId; this.once(event, (function(errorCode, response) { - this._logger.debug('Connection.emitMessage.reply %d (%s):', + this._logger.trace('Connection.emitMessage.reply %d (%s):', this._id, this.hostAndPort, errorCode); clearTimeout(timeoutId); if (sendingMessages) @@ -268,7 +268,7 @@ Connection.prototype.thenableEmitMessage = function(type, body, options) { }; Connection.prototype._sendPendingMessages = function() { - this._logger.debug('Connection._sendPendingMessages %d (%s): ' + + this._logger.trace('Connection._sendPendingMessages %d (%s): ' + 'Send %d pending message(s).', this._id, this.hostAndPort, this._pendingMessages.length); -------------- next part -------------- HTML����������������������������...Download