Skip to content

Commit

Permalink
add datetime parameter to lograge formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
aserafin committed Sep 10, 2017
1 parent d4cc3e2 commit fdbbf8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grape_logging/formatters/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def call(severity, datetime, _, data)
severity: severity,
duration: time[:total],
db: time[:db],
view: time[:view]
view: time[:view],
datetime: datetime.iso8601
}.merge(data)
::Lograge.formatter.call(attributes) + "\n"
end
Expand Down

0 comments on commit fdbbf8a

Please sign in to comment.