aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-06-09 22:48:50 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-09 22:49:14 +0200
commit211799450d25c3e6a42a48a5146af5bed78cd66d (patch)
tree282531aade31095f24232771bfabd871d1c9f20d /actionpack/lib/action_dispatch/middleware/show_exceptions.rb
parentfa15111d30f05edac7e4f63264e25887a5a4ae20 (diff)
downloadrails-211799450d25c3e6a42a48a5146af5bed78cd66d.tar.gz
rails-211799450d25c3e6a42a48a5146af5bed78cd66d.tar.bz2
rails-211799450d25c3e6a42a48a5146af5bed78cd66d.zip
Ensure show exceptions middleware properly filters backtrace before logging.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/show_exceptions.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 8a2d8cd077..0a6d2bfc8a 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -135,7 +135,7 @@ module ActionDispatch
ActiveSupport::Deprecation.silence do
message = "\n#{exception.class} (#{exception.message}):\n"
message << exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
- message << exception.backtrace.join("\n ")
+ message << " " << application_trace(exception).join("\n ")
logger.fatal("#{message}\n\n")
end
end