Skip to content

Commit

Permalink
set log_level differently
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 12, 2019
1 parent de5f1ec commit 9a492c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }
Expand Down
1 change: 0 additions & 1 deletion config/initializers/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a492c3

Please sign in to comment.