YUKI Hiroshi
null+****@clear*****
Wed Jan 30 12:21:16 JST 2013
YUKI Hiroshi 2013-01-30 12:21:16 +0900 (Wed, 30 Jan 2013) New Revision: 9eb45516b9f2f3789f1adf042ca7b180fdfdeb88 https://github.com/groonga/express-kotoumi/commit/9eb45516b9f2f3789f1adf042ca7b180fdfdeb88 Log: Handle socket error in fluent-logger Modified files: lib/backend/connection.js Modified: lib/backend/connection.js (+3 -0) =================================================================== --- lib/backend/connection.js 2013-01-30 11:49:35 +0900 (c1b8424) +++ lib/backend/connection.js 2013-01-30 12:21:16 +0900 (f0576f6) @@ -46,6 +46,9 @@ Connection.prototype._initSender = function(wait) { var sender = fluent.createFluentSender(this._params.tag || DEFAULT_FLUENT_TAG, options); this._sender = sender; + this._sender.on('error', (function(error) { + this.emit('error', error); + }).bind(this)); }; Connection.prototype._initReceiver = function() { -------------- next part -------------- HTML����������������������������...Download