mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add ENV variable for production log level
(cherry picked from commit f8856da0fd3c9e41330fdd09c407eb7f61b078dc)
This commit is contained in:
parent
76babc6372
commit
f22afe0644
2 changed files with 4 additions and 1 deletions
|
|
@ -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 ]
|
||||
|
|
|
|||
|
|
@ -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=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue