Skip to content

Commit

Permalink
Merge pull request #523 from ualbertalib/519-ignore-routing-error-exc…
Browse files Browse the repository at this point in the history
…eptions

#519: Ignore ActionController::RoutingError exceptions
  • Loading branch information
murny authored Dec 7, 2023
2 parents 8f85c6b + 091d754 commit 588037c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
# 'ignore' will cause the exception to not be reported at all.
# config.exception_level_filters.merge!('MyCriticalException' => 'critical')
#
config.exception_level_filters.merge!({
'ActionController::RoutingError' => 'ignore'
})

# You can also specify a callable, which will be called with the exception instance.
# config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' })

Expand Down

0 comments on commit 588037c

Please sign in to comment.