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 ]

View file

@ -19,6 +19,9 @@ OSEM_EMAIL_ADDRESS="no-reply@localhost"
# (Optional) The Conference#short_title to redirect the root URL to
#OSEM_ROOT_CONFERENCE=''
# (Optional) log level in production environment
OSEM_LOG_LEVEL='info'
# The api key for transifex.com.
# See TRANSLATION.md for details
OSEM_TRANSIFEX_APIKEY=""