feat: add configurable log level

This commit is contained in:
Karol Sójko
2021-05-28 11:37:08 +02:00
parent 26732f5b8d
commit 737550096e
2 changed files with 4 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ Rails.application.configure do
config.logger = ActiveSupport::Logger.new(STDOUT)
end
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'INFO').to_sym
config.colorize_logging = false
config.logger.formatter = StandardNotesFormatter.new
@@ -64,10 +66,6 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = :info
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]