Skip to content
Browse files

remove duplicate usage of Rack::Utils.status_code in LogSubscriber#pr…

…ocess_action
  • Loading branch information...
1 parent dd9ea8d commit 32dd5fcaad8adda837fa7e501e23634ad9491d2d @rafmagana rafmagana 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 32dd5fc

Please sign in to comment.
Something went wrong with that request. Please try again.