Added timestamp to production logs (#2151)

This commit is contained in:
Ahmad Farhat 2020-10-02 14:15:46 -04:00 committed by GitHub
parent 07557f45dc
commit c8a104c76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ Rails.application.configure do
{ host: event.payload[:host] }
end
config.log_formatter = proc do |severity, _time, _progname, msg|
"#{severity}: #{msg} \n"
config.log_formatter = proc do |severity, time, _progname, msg|
"#{time} - #{severity}: #{msg} \n"
end
config.log_level = :info