diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-03-28 12:23:21 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-05-19 09:42:36 +0400 |
commit | 117382f914e0911de0de3420ed14f71c083acabf (patch) | |
tree | 177b0b8d8cc7502d2da6b3814451756cf5397764 /actionpack | |
parent | 98657ad10c0bd799b8b314b9af3f0495267b2ddb (diff) | |
download | rails-117382f914e0911de0de3420ed14f71c083acabf.tar.gz rails-117382f914e0911de0de3420ed14f71c083acabf.tar.bz2 rails-117382f914e0911de0de3420ed14f71c083acabf.zip |
Make AC::LogSubscriber#send_file like #send_data
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/log_subscriber.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb index 11aa393bf9..0fb419f941 100644 --- a/actionpack/lib/action_controller/log_subscriber.rb +++ b/actionpack/lib/action_controller/log_subscriber.rb @@ -33,9 +33,7 @@ module ActionController end def send_file(event) - message = "Sent file %s" - message << " (%.1fms)" - info(message % [event.payload[:path], event.duration]) + info("Sent file %s (%.1fms)" % [event.payload[:path], event.duration]) end def redirect_to(event) |