Ensure we log the datetime in the format that we want.

This commit is contained in:
Guo Xiang Tan 2017-11-06 16:40:11 +08:00
parent 96a414d0a5
commit ffe823ed32
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class UnicornJSONLogFormatter < Logger::Formatter
def call(severity, datetime, progname, message)
default = {
severity: severity,
datetime: datetime,
datetime: DateTime.parse(datetime).to_s,
progname: progname || '',
pid: $$,
}