aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/buffered_logger.rb2
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