mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Enable Bugsnag testing in any Rails env with ENV var
This commit is contained in:
@@ -6,5 +6,9 @@ Bugsnag.configure do |config|
|
||||
config.logger = Logger.new(STDOUT)
|
||||
config.logger.level = Logger::ERROR
|
||||
end
|
||||
config.notify_release_stages = %w(production staging)
|
||||
|
||||
# If you want to notify Bugsnag in dev or test then set the env var:
|
||||
# spring stop
|
||||
# BUGSNAG=true ./bin/rails console
|
||||
config.notify_release_stages = %w(production staging) unless ENV["BUGSNAG"]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user