about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorAsh Furrow <ash@ashfurrow.com>2017-04-08 19:42:13 -0400
committerEugen <eugen@zeonfederated.com>2017-04-09 01:42:13 +0200
commitc3e7bac1ccd1b40724f4603052e3c50a1741f5f6 (patch)
tree0d6417ebca1f557b7e598bcffd73420b82c3e277 /config/environments
parent6e3925521d152808febf273312c73a09e3d3feb3 (diff)
Allows setting log level in env variable (#1290)
* Allows setting log level in env variable.

* Made changes based on feedback in #1290.
Diffstat (limited to 'config/environments')
-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 dc5dd4afd..d299e4f4c 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -38,9 +38,9 @@ Rails.application.configure do
   # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
   config.force_ssl = false
 
-  # Use the lowest log level to ensure availability of diagnostic information
+  # By default, use the lowest log level to ensure availability of diagnostic information
   # when problems arise.
-  config.log_level = :debug
+  config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'debug').to_sym
 
   # Prepend all log lines with the following tags.
   config.log_tags = [:request_id]