Files
openfoodnetwork/config/initializers/bugsnag.rb
yasir azgar 703ef8a203 Update config/initializers/bugsnag.rb
Co-authored-by: Maikel <maikel@email.org.au>
2023-11-13 10:42:46 +05:30

11 lines
352 B
Ruby

Bugsnag.configure do |config|
config.api_key = ENV['BUGSNAG_API_KEY']
config.release_stage = Rails.env
# Avoid missing API key warning without changing the Rails log level.
if Rails.env.development?
config.logger = Logger.new(STDOUT)
config.logger.level = Logger::ERROR
end
config.notify_release_stages = %w(production staging)
end