Skip to content

Commit

Permalink
Merge pull request openfoodfoundation#11733 from yasirazgar/11714_fix…
Browse files Browse the repository at this point in the history
…_bugsnag_warning

11714 -  Fix bugsnag warning
  • Loading branch information
rioug authored Nov 13, 2023
2 parents b2c6551 + 703ef8a commit 1107083
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/bugsnag.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
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

0 comments on commit 1107083

Please sign in to comment.