Skip to content

Commit

Permalink
Allows setting log level in env variable (mastodon#1290)
Browse files Browse the repository at this point in the history
* Allows setting log level in env variable.

* Made changes based on feedback in mastodon#1290.
  • Loading branch information
ashfurrow authored and Gargron committed Apr 8, 2017
1 parent 6e39255 commit c3e7bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
# 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]
Expand Down

0 comments on commit c3e7bac

Please sign in to comment.