Skip to content

Commit

Permalink
Merge pull request #1184 from cosmo0920/use-formatter-create-in-confi…
Browse files Browse the repository at this point in the history
…gure-filter_stdout

Call formatter_create in #configure instead of #start in filter_stdout
  • Loading branch information
tagomoris authored Aug 27, 2016
2 parents 2f40a5b + 1713e1f commit 1f7719e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/fluent/plugin/filter_stdout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ class StdoutFilter < Filter
def configure(conf)
compat_parameters_convert(conf, :inject, :formatter)
super
end

def start
@formatter = formatter_create(conf: @config.elements('format').first, default_type: DEFAULT_FORMAT_TYPE)
super
end

def filter_stream(tag, es)
Expand Down

0 comments on commit 1f7719e

Please sign in to comment.