From 9a492c3dd81fa87e22cb71e378c48fdec734b059 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 12 Apr 2019 05:56:44 +0200 Subject: [PATCH] set log_level differently --- config/application.rb | 1 + config/initializers/lograge.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index bd7b0b127..ccde6de10 100644 --- a/config/application.rb +++ b/config/application.rb @@ -77,6 +77,7 @@ class Application < Rails::Application logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) + config.log_level = ENV['LOG_LEVEL'].to_sym # configure caching config.cache_store = :dalli_store, nil, { :namespace => ENV['APPLICATION'] } diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb index 16598d544..85ea987cf 100644 --- a/config/initializers/lograge.rb +++ b/config/initializers/lograge.rb @@ -10,7 +10,6 @@ event.payload.inspect.length > 100000 end config.lograge.base_controller_class = 'ActionController::API' - config.log_level = ENV['LOG_LEVEL'].to_sym config.lograge.custom_options = lambda do |event| exceptions = %w(controller action format id)