diff --git a/config/initializers/bugsnag.rb b/config/initializers/bugsnag.rb index f4cb209d7d6..bd90c706997 100644 --- a/config/initializers/bugsnag.rb +++ b/config/initializers/bugsnag.rb @@ -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