diff options
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/exception_filter.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/exception_filter.rb b/config/initializers/exception_filter.rb new file mode 100644 index 0000000..18c74d9 --- /dev/null +++ b/config/initializers/exception_filter.rb @@ -0,0 +1,10 @@ +class ActionDispatch::DebugExceptions + def log_error_with_exception_filter(env, wrapper) + if wrapper.exception.is_a? ActionController::RoutingError + return + else + log_error_without_exception_filter env, wrapper + end + end + alias_method_chain :log_error, :exception_filter +end |