aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-08-03 14:57:43 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-08-03 14:57:43 -0700
commit58ce115fa563a0ce752041a0320c1c0de44f65da (patch)
tree7092867dfd6eca70debf7fb5d84ae80c2a9fabd9 /railties
parenta34b6649d061977026db7124d834faccdf5bd8ef (diff)
downloadrails-58ce115fa563a0ce752041a0320c1c0de44f65da.tar.gz
rails-58ce115fa563a0ce752041a0320c1c0de44f65da.tar.bz2
rails-58ce115fa563a0ce752041a0320c1c0de44f65da.zip
Change the production log level default from :info to :debug. All production apps I have ever worked with has done this. Let us reflect that default. You often want those SQL quieries to be able to debug issues in production
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt4
1 files changed, 2 insertions, 2 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 5e52f97249..6bd8091fd4 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
@@ -43,8 +43,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 :debug to see everything in the log.
- config.log_level = :info
+ # Set to :info to see decrease the log volume.
+ config.log_level = :debug
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]