diff options
author | elijah <elijah@riseup.net> | 2014-11-11 13:01:06 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-11-11 13:01:06 -0800 |
commit | c8b9e7ac72d27997603dbede8001fca7d3f40e1a (patch) | |
tree | eaf542a338e863182f1f884f635d6dad820c0111 /config | |
parent | fec5cf6955898b170683677b172ac99a6475d491 (diff) | |
parent | 546aaa9f39b40a3f11670c805bb71e4ace7d0cc7 (diff) |
Merge branch 'feature/error-tweaks' of https://github.com/azul/leap_web into develop
Diffstat (limited to 'config')
-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 |