Bugsnag5.4.0からそれまでデフォルトで除外されていたエラーもinfoレベルで通知されるようになっているので、以下のどちらかの方法でメール通知から除外しておくほうが運用上良さそう。
ignore_classes設定に追加する
config/initializers/bugsnag.rb
Bugsnag.configure do |config|
config.api_key = "xxxxx"
config.notify_release_stages = %w[production staging]
config.ignore_classes.merge([
AbstractController::ActionNotFound,
ActionController::InvalidAuthenticityToken,
ActionController::ParameterMissing,
ActionController::RoutingError,
ActionController::UnknownFormat,
ActionController::UnknownHttpMethod,
ActiveRecord::RecordNotFound,
SignalException,
])
end
Bugsnag側の設定でinfoレベルはメール通知されないように設定する
- Bugsnagのプロジェクトページを開く
- Settings -> Email notifications -> Filter by severity
-
info
からチェックを外す