Kouhei Sutou
null+****@clear*****
Wed Nov 5 15:38:27 JST 2014
Kouhei Sutou 2014-11-05 15:38:27 +0900 (Wed, 05 Nov 2014) New Revision: cb73f40dc4a8bf32618f108846770d7fa33e2490 https://github.com/groonga/fluent-plugin-groonga/commit/cb73f40dc4a8bf32618f108846770d7fa33e2490 Message: out: log on error response Modified files: fluent-plugin-groonga.gemspec lib/fluent/plugin/out_groonga.rb Modified: fluent-plugin-groonga.gemspec (+1 -1) =================================================================== --- fluent-plugin-groonga.gemspec 2014-11-05 14:53:39 +0900 (0d82be8) +++ fluent-plugin-groonga.gemspec 2014-11-05 15:38:27 +0900 (cde0aa9) @@ -35,7 +35,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency("fluentd") - spec.add_runtime_dependency("groonga-client") + spec.add_runtime_dependency("groonga-client", ">= 0.1.0") spec.add_runtime_dependency("groonga-command-parser") spec.add_development_dependency("rake") Modified: lib/fluent/plugin/out_groonga.rb (+7 -1) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2014-11-05 14:53:39 +0900 (52c17d1) +++ lib/fluent/plugin/out_groonga.rb 2014-11-05 15:38:27 +0900 (743e7a9) @@ -549,7 +549,13 @@ module Fluent :host => @host, :port => @port, :backend => :synchronous) - @client.execute(command) + response =****@clien*****(command) + unless response.success? + $log.error("[output][groonga][error]", + :status_code => response.status_code, + :message => response.message) + end + response end end -------------- next part -------------- HTML����������������������������... Descargar