Daijiro MORI
null+****@clear*****
Wed Jun 26 07:34:35 JST 2013
Daijiro MORI 2013-06-26 07:34:35 +0900 (Wed, 26 Jun 2013) New Revision: e747095f429cfa8f9a67c3aef36becc2fec4320a https://github.com/groonga/fluent-plugin-droonga/commit/e747095f429cfa8f9a67c3aef36becc2fec4320a Message: Handle error within handler_forward plugin. Modified files: lib/droonga/plugin/handler_forward.rb Modified: lib/droonga/plugin/handler_forward.rb (+6 -0) =================================================================== --- lib/droonga/plugin/handler_forward.rb 2013-06-24 14:37:35 +0900 (d9daffc) +++ lib/droonga/plugin/handler_forward.rb 2013-06-26 07:34:35 +0900 (be73792) @@ -64,6 +64,12 @@ module Droonga @config = JSON.parse(file.read) end @config_mtime = mtime + rescue => exception + if $log + $log.error "error while refreshing config", exception: exception + $log.error_backtrace + end + @config = nil end end end -------------- next part -------------- HTML����������������������������...Download