]> cat aescling's git repositories - mastodon.git/commitdiff
Fix activerecord logging in production
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 1 Feb 2017 10:34:50 +0000 (11:34 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 1 Feb 2017 10:34:50 +0000 (11:34 +0100)
config/environments/production.rb

index d2dfa4274498465fad7cd434b0b18e2d43f719bc..3f193cce6442a4bf28d5d63c8aad91be4bb86eec 100644 (file)
@@ -40,7 +40,7 @@ Rails.application.configure do
 
   # Use the lowest log level to ensure availability of diagnostic information
   # when problems arise.
-  config.log_level = :debug
+  config.log_level = :info
 
   # Prepend all log lines with the following tags.
   config.log_tags = [ :request_id ]
@@ -106,8 +106,6 @@ Rails.application.configure do
 
   config.react.variant = :production
 
-  config.active_record.logger = nil
-
   config.to_prepare do
     StatsD.backend = StatsD::Instrument::Backends::NullBackend.new if ENV['STATSD_ADDR'].blank?
   end