Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Lookup the status code and rework the Completed line a bit

  • Loading branch information...
commit 59d8a2b4f5ffe97e01c4707278d47c29f1c66741 1 parent c76df7a
@dhh dhh authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  actionpack/lib/action_controller/railties/subscriber.rb
View
3  actionpack/lib/action_controller/railties/subscriber.rb
@@ -15,9 +15,8 @@ def process_action(event)
payload = event.payload
additions = ActionController::Base.log_process_action(payload)
- message = "Completed in %.0fms" % event.duration
+ message = "Completed #{payload[:status]} #{Rack::Utils::HTTP_STATUS_CODES[payload[:status]]} in %.0fms" % event.duration
message << " (#{additions.join(" | ")})" unless additions.blank?
- message << " with #{payload[:status]}"
info(message)
end
Please sign in to comment.
Something went wrong with that request. Please try again.