diff --git a/config/environments/production.rb b/config/environments/production.rb index a76170fb..19ad5bd6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -118,7 +118,8 @@ } # Use log rage - config.lograge.enabled = true + enabled = ENV.fetch('RAILS_LOGRAGE_ENABLED', 'true') + config.lograge.enabled = ActiveModel::Type::Boolean.new.cast(enabled) config.lograge.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new($stdout)) config.lograge.ignore_actions = ['StatusController#health', 'StatusController#readiness'] config.lograge.custom_payload do |controller|