diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-05-19 19:02:38 -0700 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-05-19 19:02:38 -0700 |
commit | da97cf016a8ffd1f54f804cd881f393e5d6efc18 (patch) | |
tree | 84d13a2d187e0f9b5d6775fea328241a5f0baf99 /actionpack | |
parent | fa41c929306857182168a014939a5fe7ed7f7567 (diff) | |
parent | 117382f914e0911de0de3420ed14f71c083acabf (diff) | |
download | rails-da97cf016a8ffd1f54f804cd881f393e5d6efc18.tar.gz rails-da97cf016a8ffd1f54f804cd881f393e5d6efc18.tar.bz2 rails-da97cf016a8ffd1f54f804cd881f393e5d6efc18.zip |
Merge pull request #5631 from avakhov/ac-log-subsriber-small-refac
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) |