YUKI Hiroshi
null+****@clear*****
Mon Jan 27 17:52:13 JST 2014
YUKI Hiroshi 2014-01-27 17:52:13 +0900 (Mon, 27 Jan 2014) New Revision: 23cd34789bbbfee4130b1fdf3f43aca8f6fafbe4 https://github.com/droonga/fluent-plugin-droonga/commit/23cd34789bbbfee4130b1fdf3f43aca8f6fafbe4 Message: Return all errors as a part of the envelope Modified files: lib/droonga/replier.rb Modified: lib/droonga/replier.rb (+4 -0) =================================================================== --- lib/droonga/replier.rb 2014-01-27 17:47:28 +0900 (ef125e8) +++ lib/droonga/replier.rb 2014-01-27 17:52:13 +0900 (7b8997b) @@ -30,6 +30,10 @@ module Droonga "type" => destination["type"], "body" => message["body"], } + if message.include?("errors") + errors = message["errors"] + reply_message["errors"] = errors unless errors.empty? + end @forwarder.forward(reply_message, destination) $log.trace("#{log_tag}: reply: done") end -------------- next part -------------- HTML����������������������������... Download