aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-13 23:19:11 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-14 01:07:03 +0100
commitf921ad5c97048c692859b395bc78245a343bf833 (patch)
tree6eec831da1283ac59627a172c908276573b02f54 /actionpack/lib/action_controller/railties
parent116df09c3e4a57a6b0a57a5134c451687113ece1 (diff)
downloadrails-f921ad5c97048c692859b395bc78245a343bf833.tar.gz
rails-f921ad5c97048c692859b395bc78245a343bf833.tar.bz2
rails-f921ad5c97048c692859b395bc78245a343bf833.zip
Tidy up ActiveRecord and Views runtime information on process action logger.
Diffstat (limited to 'actionpack/lib/action_controller/railties')
-rw-r--r--actionpack/lib/action_controller/railties/subscriber.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/railties/subscriber.rb b/actionpack/lib/action_controller/railties/subscriber.rb
index d6a71afc23..c21305ac8f 100644
--- a/actionpack/lib/action_controller/railties/subscriber.rb
+++ b/actionpack/lib/action_controller/railties/subscriber.rb
@@ -12,9 +12,10 @@ module ActionController
params = controller.send(:filter_parameters, request.params)
info " Parameters: #{params.inspect}" unless params.empty?
- ActionController::Base.log_process_action(controller)
+ additions = ActionController::Base.log_process_action(controller)
message = "Completed in %.0fms" % event.duration
+ message << " (#{additions.join(" | ")})" unless additions.blank?
message << " | #{controller.response.status}"
message << " [#{request.request_uri rescue "unknown"}]\n\n"