diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-25 11:13:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-25 11:13:13 -0800 |
commit | 1a93eaae4e67d06c025912f32cae630b04a8ec68 (patch) | |
tree | 62b82ec2cfbc5343ed34f881a677dcbe58bfd60f | |
parent | b0239211411ce45f9cbaf5dfaf2ba28cc93c5a6d (diff) | |
parent | c9cd0eb2d01c262b987070d739cf1d5e46672c10 (diff) | |
download | rails-1a93eaae4e67d06c025912f32cae630b04a8ec68.tar.gz rails-1a93eaae4e67d06c025912f32cae630b04a8ec68.tar.bz2 rails-1a93eaae4e67d06c025912f32cae630b04a8ec68.zip |
Merge pull request #4675 from lunks/3-2-stable
Duping log handler on buffered logger silencer.
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index 775f9928e6..b1b539a2ec 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -30,7 +30,7 @@ module ActiveSupport def silence(temporary_level = ERROR) if silencer begin - logger = self.class.new @log_dest, temporary_level + logger = self.class.new @log_dest.dup, temporary_level yield logger ensure logger.close |