Standardize timestamps in Unicorn logs

What does this MR do?

Original Epic: &2575

This MR introduces a custom formatter that formats the timestamps to be in UTC, and in ISO8601.3 format. Unicorn's default logger is configured to use this formatter in config/unicorn.rb

Before:

I, [2020-02-07T16:13:22.736217 #63537]  INFO -- : worker=0 ready
I, [2020-02-07T16:13:22.736588 #63538]  INFO -- : worker=1 ready

After:

I, [2020-02-07T15:11:15.529Z #62411]  INFO -- : worker=1 ready
I, [2020-02-07T15:11:15.529Z #62410]  INFO -- : worker=0 ready

There is a follow-up MR to update the timestamp in Fluentd.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Aakriti Gupta

Merge request reports

Loading