mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Update config/initializers/bugsnag.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
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) # In Rails apps, create a new logger to avoid changing the Rails log level
|
||||
config.logger = Logger.new(STDOUT)
|
||||
config.logger.level = Logger::ERROR
|
||||
end
|
||||
config.notify_release_stages = %w(production staging)
|
||||
|
||||
Reference in New Issue
Block a user