mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-01 10:05:47 +00:00
JSON serialization was wrong
This commit is contained in:
parent
95dcaa0979
commit
ed8d25f89f
1 changed files with 5 additions and 7 deletions
|
|
@ -2,13 +2,11 @@ module GrapeLogging
|
|||
module Formatters
|
||||
class Json
|
||||
def call(severity, datetime, _, data)
|
||||
JSON.parse(
|
||||
{
|
||||
date: datetime,
|
||||
severity: severity,
|
||||
data: format(data)
|
||||
}
|
||||
)
|
||||
{
|
||||
date: datetime,
|
||||
severity: severity,
|
||||
data: format(data)
|
||||
}.to_json
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Reference in a new issue