Add ENV variable for production log level

(cherry picked from commit f8856da0fd3c9e41330fdd09c407eb7f61b078dc)
This commit is contained in:
James Mason 2018-03-30 15:58:53 -07:00 committed by Christian Bruckmayer
parent 76babc6372
commit f22afe0644
2 changed files with 4 additions and 1 deletions

View file

@ -40,7 +40,7 @@ Osem::Application.configure do
config.force_ssl = !!ENV['FORCE_SSL']
# See everything in the log (default is :info)
config.log_level = :info
config.log_level = ENV['OSEM_LOG_LEVEL'].try(:to_sym) || :info
# Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ]