Kouhei Sutou
null+****@clear*****
Thu Nov 20 11:40:37 JST 2014
Kouhei Sutou 2014-11-20 11:40:37 +0900 (Thu, 20 Nov 2014) New Revision: 1581d9e8a7a9f4204b0448895096577f9e8d0899 https://github.com/groonga/fluent-plugin-groonga/commit/1581d9e8a7a9f4204b0448895096577f9e8d0899 Message: Log host, port and command name on error Modified files: lib/fluent/plugin/out_groonga.rb Modified: lib/fluent/plugin/out_groonga.rb (+11 -1) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2014-11-20 11:01:00 +0900 (258a019) +++ lib/fluent/plugin/out_groonga.rb 2014-11-20 11:40:37 +0900 (46092d4) @@ -585,7 +585,17 @@ module Fluent :host => @host, :port => @port, :backend => :synchronous) - response =****@clien*****(command) + response = nil + begin + response =****@clien*****(command) + rescue Groonga::Client::Error + $log.error("[output][groonga][error]", + :protocol => @protocol, + :host => @host, + :port => @port, + :command_name => name) + raise + end unless response.success? $log.error("[output][groonga][error]", :status_code => response.status_code, -------------- next part -------------- HTML����������������������������...Download