Enable Bugsnag testing in any Rails env with ENV var

This commit is contained in:
Maikel Linke
2024-11-20 15:58:05 +11:00
parent d0dcc92ca7
commit 1e13005fb5

View File

@@ -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