Skip to content

Commit

Permalink
Make Lograge toggleable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Dec 28, 2023
1 parent 65475ba commit 67b5650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 67b5650

Please sign in to comment.