diff --git a/config/initializers/bugsnag.rb b/config/initializers/bugsnag.rb index 3b6d7ae..e92808c 100644 --- a/config/initializers/bugsnag.rb +++ b/config/initializers/bugsnag.rb @@ -1,3 +1,10 @@ Bugsnag.configure do |config| config.api_key = ENV['BUGSNAG_API_KEY'] + config.auto_notify = begin + if ENV['NOTIFY_BUG_SNAG'] == 'true' + true + else + false + end + end end