diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-26 10:41:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-26 10:41:59 -0700 |
commit | e28f9ad9df6c3b1a51db7ced3af781d114486aec (patch) | |
tree | 84031644521b4431dcf3f7fdd3d289579c15f1e7 /activesupport/lib/active_support/log_subscriber.rb | |
parent | 315f5557441a826666e91936ce01675ee77bd40f (diff) | |
download | rails-e28f9ad9df6c3b1a51db7ced3af781d114486aec.tar.gz rails-e28f9ad9df6c3b1a51db7ced3af781d114486aec.tar.bz2 rails-e28f9ad9df6c3b1a51db7ced3af781d114486aec.zip |
simplifying buffered logger for easier and slightly more performant codes. pumpkin
Diffstat (limited to 'activesupport/lib/active_support/log_subscriber.rb')
-rw-r--r-- | activesupport/lib/active_support/log_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index 10675edac5..1c4dd24227 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -81,7 +81,7 @@ module ActiveSupport # Flush all log_subscribers' logger. def flush_all! - flushable_loggers.each(&:flush) + flushable_loggers.each { |log| log.flush } end end |