Skip to content

Commit

Permalink
fix to add output plugins under MultOutput plugins to call lifecycle …
Browse files Browse the repository at this point in the history
…methods
  • Loading branch information
tagomoris committed Aug 22, 2016
1 parent 508fd43 commit d5b946f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fluent/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def add_match(type, pattern, conf)
output.router = @event_router if output.respond_to?(:router=)
output.configure(conf)
@outputs << output
if output.respond_to?(:outputs) && (output.is_a?(Fluent::Plugin::MultiOutput) || output.is_a?(Fluent::MultiOutput))
@outputs.push(*output.outputs)
end
@event_router.add_rule(pattern, output)

output
Expand Down

0 comments on commit d5b946f

Please sign in to comment.