Skip to content

Commit

Permalink
Don't fight against ourselves for the default log level
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthewd committed Aug 21, 2014
1 parent b55e7e3 commit 523e279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/application/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def database_configuration
end

def log_level
@log_level ||= Rails.env.production? ? :info : :debug
@log_level ||= :debug
end

def colorize_logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 523e279

Please sign in to comment.