diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2011-12-13 22:32:39 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2011-12-13 22:32:39 +0300 |
commit | 081431fdf180ec7395c769793b2270d244566ca2 (patch) | |
tree | a54c772f61d119477185206ed8b3c97eef858168 /actionpack/lib/action_dispatch/middleware | |
parent | 0f4da5b39394fe1096e93a7f2600f4d90330d1c0 (diff) | |
download | rails-081431fdf180ec7395c769793b2270d244566ca2.tar.gz rails-081431fdf180ec7395c769793b2270d244566ca2.tar.bz2 rails-081431fdf180ec7395c769793b2270d244566ca2.zip |
log exception backtrace when all backtrace lines silenced
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index 417701ea54..cd4af82c6e 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -59,10 +59,13 @@ module ActionDispatch exception = wrapper.exception + trace = wrapper.application_trace + trace = wrapper.framework_trace if trace.empty? + ActiveSupport::Deprecation.silence do message = "\n#{exception.class} (#{exception.message}):\n" message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code) - message << " " << wrapper.application_trace.join("\n ") + message << " " << trace.join("\n ") logger.fatal("#{message}\n\n") end end |