YUKI Hiroshi
null+****@clear*****
Tue Jan 29 18:09:40 JST 2013
YUKI Hiroshi 2013-01-29 18:09:40 +0900 (Tue, 29 Jan 2013) New Revision: 5a0a90e93a4376f35d50cfda46cd4c938ebb4669 https://github.com/groonga/express-kotoumi/commit/5a0a90e93a4376f35d50cfda46cd4c938ebb4669 Log: Use overridden fluent-logger with the new API Modified files: lib/backend/connection.js Modified: lib/backend/connection.js (+8 -1) =================================================================== --- lib/backend/connection.js 2013-01-29 18:08:50 +0900 (ab05534) +++ lib/backend/connection.js 2013-01-29 18:09:40 +0900 (9ed6083) @@ -20,6 +20,12 @@ var DEFAULT_FLUENT_HOST_NAME = var DEFAULT_FLUENT_PORT = Connection.DEFAULT_FLUENT_PORT = 24224; +var DEFAULT_FLUENT_MAX_RETRY_COUNT = + Connection.DEFAULT_FLUENT_MAX_RETRY_COUNT = + 3; +var DEFAULT_FLUENT_RETRY_DELAY = + Connection.DEFAULT_FLUENT_RETRY_DELAY = + 1000; var DEFAULT_RECEIVE_HOST_NAME = Connection.DEFAULT_RECEIVE_HOST_NAME = 'localhost'; @@ -46,7 +52,8 @@ Connection.prototype._initSender = function(wait) { if (!this._params.sender) { var options = { host: this._params.hostName || DEFAULT_FLUENT_HOST_NAME, port: this._params.port || DEFAULT_FLUENT_PORT, - reconnect: true }; + maxRetryCount: this._params.maxRetryCount || DEFAULT_FLUENT_MAX_RETRY_COUNT, + retryDelay: this._params.retryDelay || DEFAULT_FLUENT_RETRY_DELAY }; var sender = fluent.createFluentSender(this._params.tag || DEFAULT_FLUENT_TAG, options); this._sender = sender; -------------- next part -------------- HTML����������������������������...Download