[bbb-greenlight: 25/39] Added timestamp to production logs (#2151)




commit c8a104c76efcd745f490abb7f0829aa4722c1432
Author: Ahmad Farhat <ahmad af farhat gmail com>
Date:   Fri Oct 2 14:15:46 2020 -0400

    Added timestamp to production logs (#2151)

 config/environments/production.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 99771b6..07a3251 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]