aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-11-17 04:17:23 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2014-11-17 04:19:49 -0800
commita6de6f508c6566af098999ca70f93ee8023bc9a5 (patch)
treecc0256e88c8568163372258b4a417ba0c539b2ef /railties/lib/rails/generators
parent402cc9f46acfd1ff172fdff5bc99f397d498607d (diff)
downloadrails-a6de6f508c6566af098999ca70f93ee8023bc9a5.tar.gz
rails-a6de6f508c6566af098999ca70f93ee8023bc9a5.tar.bz2
rails-a6de6f508c6566af098999ca70f93ee8023bc9a5.zip
Deprecate different default for `log_level` in production
This is a more conservative approach to 2602a49. Also changed the comment to be more inline with everything else in the file (describing what the config value is doing and why). People should just read the docs for alternatives.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
index aa7b93f0a1..91dea5858f 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
@@ -45,7 +45,8 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
- # Set to :info to decrease the log volume.
+ # Use the lowest log_level to ensure availability of diagnostic information
+ # when problems arise.
config.log_level = :debug
# Prepend all log lines with the following tags.