diff --git a/lib/dry/effects/extensions/active_support/tagged_logging.rb b/lib/dry/effects/extensions/active_support/tagged_logging.rb index 9276c9c..3254225 100644 --- a/lib/dry/effects/extensions/active_support/tagged_logging.rb +++ b/lib/dry/effects/extensions/active_support/tagged_logging.rb @@ -9,7 +9,7 @@ rescue LoadError ActiveSupport::TaggedLogging::Formatter.prepend(Module.new { def current_tags - thread_key = @thread_key ||= "activesupport_tagged_logging_tags:#{object_id}" + thread_key = @thread_key ||= "activesupport_tagged_logging_tags:#{__id__}" unless Thread.current.thread_variable_get(thread_key) Thread.current.thread_variable_set(thread_key, []) end