mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
11714 fix bugsnag warn
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
Bugsnag.configure do |config|
|
||||
config.api_key = ENV['BUGSNAG_API_KEY']
|
||||
config.notify_release_stages = %w(production staging)
|
||||
config.release_stage = ENV['RAILS_ENV']
|
||||
|
||||
release_stages_to_notify = if ENV['RAILS_ENV'].in? %w(test development)
|
||||
nil
|
||||
else
|
||||
Array[ENV['RAILS_ENV']]
|
||||
end
|
||||
config.notify_release_stages = release_stages_to_notify
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user