From b0d35ad00c3d7f6f63aa7ae8f3d3cb802bb90d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 13 Jan 2010 01:04:33 +0100 Subject: Test fragment/page cache and send data/file notifications. --- actionpack/lib/action_controller/railties/subscriber.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'actionpack/lib/action_controller/railties/subscriber.rb') diff --git a/actionpack/lib/action_controller/railties/subscriber.rb b/actionpack/lib/action_controller/railties/subscriber.rb index d9d77304ee..d6a71afc23 100644 --- a/actionpack/lib/action_controller/railties/subscriber.rb +++ b/actionpack/lib/action_controller/railties/subscriber.rb @@ -24,11 +24,11 @@ module ActionController def send_file(event) message = if event.payload[:x_sendfile] header = ActionController::Streaming::X_SENDFILE_HEADER - "Sending #{header} header %s" + "Sent #{header} header %s" elsif event.payload[:stream] - "Streaming file %s" + "Streamed file %s" else - "Sending file %s" + "Sent file %s" end message << " (%.1fms)" @@ -40,7 +40,7 @@ module ActionController end def send_data(event) - info("Sending data %s (%.1fms)" % [event.payload[:filename], event.duration]) + info("Sent data %s (%.1fms)" % [event.payload[:filename], event.duration]) end %w(write_fragment read_fragment exist_fragment? @@ -49,7 +49,7 @@ module ActionController def #{method}(event) key_or_path = event.payload[:key] || event.payload[:path] human_name = #{method.to_s.humanize.inspect} - info("\#{human_name} \#{key_or_path.inspect} (%.1fms)" % event.duration) + info("\#{human_name} \#{key_or_path} (%.1fms)" % event.duration) end METHOD end -- cgit v1.2.3