Permalink
Browse files

Lookup the status code and rework the Completed line a bit

  • Loading branch information...
1 parent c76df7a commit 59d8a2b4f5ffe97e01c4707278d47c29f1c66741 @dhh dhh committed Feb 6, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 59d8a2b

Please sign in to comment.