about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-11 23:28:23 +0200
committerGitHub <noreply@github.com>2017-04-11 23:28:23 +0200
commit40bdf432972bfd17eee713951e6cfcb953da4268 (patch)
tree045f61aa6d505f4e955b8fbc557892428df45be1 /config
parent8ead070b940ce8d4bf2c93af99b3487129d578e2 (diff)
Change default log level in production from :debug to :info for less I/O (#1579)
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 08dc7b30c..37a10fd4d 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -40,7 +40,7 @@ Rails.application.configure do
 
   # By default, use the lowest log level to ensure availability of diagnostic information
   # when problems arise.
-  config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'debug').to_sym
+  config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info').to_sym
 
   # Prepend all log lines with the following tags.
   config.log_tags = [:request_id]
@@ -64,7 +64,7 @@ Rails.application.configure do
     password: ENV.fetch('REDIS_PASSWORD') { false },
     db: 0,
     namespace: 'cache',
-    expires_in: 20.minutes,
+    expires_in: 10.minutes,
   }
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server.