Skip to content

Commit

Permalink
emit EventTime with log event
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Jan 10, 2017
1 parent e313703 commit 5b87737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def event(level, args)
record[key] = record[key].inspect unless record[key].respond_to?(:to_msgpack)
}
record['message'] = message.dup
@engine.push_log_event("#{LOG_EVENT_TAG_PREFIX}.#{level}", time.to_i, record)
@engine.push_log_event("#{LOG_EVENT_TAG_PREFIX}.#{level}", Fluent::EventTime.from_time(time), record)
end

return time, message
Expand Down

0 comments on commit 5b87737

Please sign in to comment.