We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b8222c + 7025c84 commit 931c5efCopy full SHA for 931c5ef
activesupport/lib/active_support/tagged_logging.rb
@@ -119,6 +119,10 @@ def self.new(logger)
119
120
if logger.formatter
121
logger.formatter = logger.formatter.clone
122
+
123
+ # Workaround for https://bugs.ruby-lang.org/issues/20250
124
+ # Can be removed when Ruby 3.4 is the least supported version.
125
+ logger.formatter.object_id if logger.formatter.is_a?(Proc)
126
else
127
# Ensure we set a default formatter so we aren't extending nil!
128
logger.formatter = ActiveSupport::Logger::SimpleFormatter.new
0 commit comments