DS_LOG_LEVEL control rails log level

This commit is contained in:
simon lehericey 2023-07-21 11:26:06 +02:00
parent 68ca0a4f0d
commit e6194da82d
2 changed files with 5 additions and 1 deletions

View file

@ -215,3 +215,7 @@ POSTGIS_EXTENSION_DISABLED=""
REDIS_CACHE_URL=""
REDIS_CACHE_SSL="enabled"
REDIS_CACHE_SSL_VERIFY_NONE="enabled"
# Setup log level, info if nil
# can be debug, info, warn, error, fatal, and unknown
DS_LOG_LEVEL='info'

View file

@ -52,7 +52,7 @@ Rails.application.configure do
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = ENV["DS_ENV"] == "staging" ? :debug : :info
config.log_level = ENV["DS_LOG_LEVEL"].presence&.to_sym || :info
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]