Skip to content

Commit

Permalink
parser_none: Use faster creation
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Nakagawa <repeatedly@gmail.com>
  • Loading branch information
repeatedly committed Jun 13, 2019
1 parent 12ffa0a commit 13774be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fluent/plugin/parser_none.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class NoneParser < Parser
config_param :message_key, :string, default: 'message'

def parse(text)
record = {}
record[@message_key] = text
record = {@message_key => text}
time = @estimate_current_event ? Fluent::EventTime.now : nil
yield time, record
end
Expand Down

0 comments on commit 13774be

Please sign in to comment.