Permalink
Browse files

Merge pull request #6253 from rafmagana/master

remove duplicate usage of Rack::Utils.status_code in LogSubscriber#process_action
  • Loading branch information...
2 parents 4142067 + 32dd5fc commit 9b1eb4f1aacf0559402a3c99b7732a89a3c1f711 @josevalim josevalim committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/log_subscriber.rb
View
2 actionpack/lib/action_controller/log_subscriber.rb
@@ -20,7 +20,7 @@ def process_action(event)
status = payload[:status]
if status.nil? && payload[:exception].present?
- status = Rack::Utils.status_code(ActionDispatch::ExceptionWrapper.new({}, payload[:exception]).status_code)
+ status = 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?

0 comments on commit 9b1eb4f

Please sign in to comment.