choonkeat / runtimeerror_notifier

runtimeerror_notifier gem for those without email sending resources
Other
2 stars 1 forks source link

IGNORED_EXCEPTIONS not ignored #7

Closed winston closed 9 years ago

winston commented 9 years ago

Initializer was set as such:

if defined?(RuntimeerrorNotifier) && ENV["RUNTIMEERROR_EMAIL"].present?
  # Get your secret email address from RuntimeError.net and
  #1. Set it as environment variable RUNTIMEERROR_EMAIL (preferred method)
  #2. OR, change the value (legacy method)
  RuntimeerrorNotifier.for ENV["RUNTIMEERROR_EMAIL"]

  RuntimeerrorNotifier::Notifier::IGNORED_EXCEPTIONS.push(*%w[
    ActionController::RoutingError,
    ActiveRecord::RecordNotFound
  ])
end

It was working all fine, but today the IGNORED_EXCEPTIONS were not ignored and hence a lot of errors came in. I don't see a change in this gem though, so not sure what broke?

And they are ActionController::RoutingError because errors start with:

# (ActionController::RoutingError) "No route matches [GET] 

Ideas?

/cc @allenlsy

winston commented 9 years ago

Case closed. Syntax was wrong.

-    ActionController::RoutingError,
+    ActionController::RoutingError

sumimasen.