aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
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 /activerecord
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 'activerecord')
-rw-r--r--activerecord/lib/active_record/railties/controller_runtime.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/railties/controller_runtime.rb b/activerecord/lib/active_record/railties/controller_runtime.rb
index 535e967ec3..a4f4e15c2e 100644
--- a/activerecord/lib/active_record/railties/controller_runtime.rb
+++ b/activerecord/lib/active_record/railties/controller_runtime.rb
@@ -21,9 +21,9 @@ module ActiveRecord
module ClassMethods
def log_process_action(controller)
- super
- db_runtime = controller.send :db_runtime
- logger.info(" ActiveRecord runtime: %.1fms" % db_runtime.to_f) if db_runtime
+ messages, db_runtime = super, controller.send(:db_runtime)
+ messages << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime
+ messages
end
end
end