aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-01 21:18:47 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-01 21:18:47 +0100
commit07f90f6bec702a6e08d65a33682ddd244050375f (patch)
treeeb76e17734ae44e08a75b8d74740e6e600422ae6 /actionpack/lib/action_controller
parent83d29a283ceb13ff431da535e8cc35db6828016c (diff)
parent6a4606d3a64e60189ea4ba5243830dcd97e6de14 (diff)
downloadrails-07f90f6bec702a6e08d65a33682ddd244050375f.tar.gz
rails-07f90f6bec702a6e08d65a33682ddd244050375f.tar.bz2
rails-07f90f6bec702a6e08d65a33682ddd244050375f.zip
Merge branch 'exceptions' with the following features:
* A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example) * Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions Conflicts: actionpack/CHANGELOG.md
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/log_subscriber.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb
index 8666ecc9c8..de250053d3 100644
--- a/actionpack/lib/action_controller/log_subscriber.rb
+++ b/actionpack/lib/action_controller/log_subscriber.rb
@@ -20,7 +20,7 @@ module ActionController
status = payload[:status]
if status.nil? && payload[:exception].present?
- status = Rack::Utils.status_code(ActionDispatch::ShowExceptions.rescue_responses[payload[:exception].first]) rescue nil
+ status = Rack::Utils.status_code(ActionDispatch::ExceptionWrapper.new({}, payload[:exception]).status_code)
end
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in %.0fms" % event.duration
message << " (#{additions.join(" | ")})" unless additions.blank?