diff options
author | Pedro Nascimento <pnascimento@gmail.com> | 2012-01-25 16:53:51 -0200 |
---|---|---|
committer | Pedro Nascimento <pnascimento@gmail.com> | 2012-01-25 16:53:51 -0200 |
commit | c9cd0eb2d01c262b987070d739cf1d5e46672c10 (patch) | |
tree | bc083fc7ef22ddfb2b7f8e2aeff6ea22ec1a90f4 /activesupport | |
parent | a267090946b126df5e0da484e5804f7a09e15f8f (diff) | |
download | rails-c9cd0eb2d01c262b987070d739cf1d5e46672c10.tar.gz rails-c9cd0eb2d01c262b987070d739cf1d5e46672c10.tar.bz2 rails-c9cd0eb2d01c262b987070d739cf1d5e46672c10.zip |
Duping log handler. fixes #4668
Diffstat (limited to 'activesupport')
-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 |