Skip to content

Commit

Permalink
supress bugsnag warn in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasir Azgar authored and Yasir Azgar committed Nov 12, 2023
1 parent 02589fb commit 0a7a1f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/bugsnag.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Bugsnag.configure do |config|
config.api_key = ENV['BUGSNAG_API_KEY']
config.release_stage = ENV['RAILS_ENV']

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.level = Logger::ERROR
end
config.notify_release_stages = %w(production staging)
end

0 comments on commit 0a7a1f5

Please sign in to comment.