mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't fight against ourselves for the default log level
If we want to always default to :debug, let's just do that. At which point the production.rb entry can become an "uncomment to change" instead.
This commit is contained in:
parent
b55e7e3f73
commit
523e279792
2 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@ module Rails
|
|||
end
|
||||
|
||||
def log_level
|
||||
@log_level ||= Rails.env.production? ? :info : :debug
|
||||
@log_level ||= :debug
|
||||
end
|
||||
|
||||
def colorize_logging
|
||||
|
|
|
@ -44,8 +44,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.
|
||||
config.log_level = :debug
|
||||
# Decrease the log volume.
|
||||
# config.log_level = :info
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
# config.log_tags = [ :subdomain, :uuid ]
|
||||
|
|
Loading…
Reference in a new issue