aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorJames Cox <james@imaj.es>2011-06-24 15:01:57 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-24 13:10:06 -0700
commitd446c798a5ef6c253c56d3b6a607073a8a92dcf2 (patch)
treeca7421fc0526b9e0ded2f2da9b4f058aad8bdcb4 /actionpack/lib/action_view
parentd6413f043ce132618c7b3d50301d66eac339f997 (diff)
downloadrails-d446c798a5ef6c253c56d3b6a607073a8a92dcf2.tar.gz
rails-d446c798a5ef6c253c56d3b6a607073a8a92dcf2.tar.bz2
rails-d446c798a5ef6c253c56d3b6a607073a8a92dcf2.zip
make the logs a little simpler to view, put the render message inline with other events, pull processing to char[0] and add a new line to the completed. looks more like a block now, which is useful for serial actions like test/dev
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/log_subscriber.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/log_subscriber.rb b/actionpack/lib/action_view/log_subscriber.rb
index 29ffbd6fdd..bf90d012bf 100644
--- a/actionpack/lib/action_view/log_subscriber.rb
+++ b/actionpack/lib/action_view/log_subscriber.rb
@@ -4,7 +4,7 @@ module ActionView
# Provides functionality so that Rails can output logs from Action View.
class LogSubscriber < ActiveSupport::LogSubscriber
def render_template(event)
- message = "Rendered #{from_rails_root(event.payload[:identifier])}"
+ message = " Rendered #{from_rails_root(event.payload[:identifier])}"
message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
message << (" (%.1fms)" % event.duration)
info(message)