From e5e9a3895a9bf36797ec4a7843e175b21b661977 Mon Sep 17 00:00:00 2001 From: Jared Armstrong Date: Mon, 30 Sep 2024 00:39:26 +1300 Subject: [PATCH] Fix syntax issue --- activesupport/lib/active_support/tagged_logging.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index d9310a90d7b5f..b7c3660eb02d3 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -44,9 +44,9 @@ def tagged(*tags, &block) end.call else # `tagged(...) returns a new logger with the tags pushed - self.class.new *broadcasts.map { |logger| + self.class.new(*broadcasts.map { |logger| logger.respond_to?(:tagged) ? logger.tagged(*tags) : logger - } + }) end end end