Skip to content

Commit

Permalink
Prefer __id__ over object_id
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Nov 30, 2024
1 parent d8025e9 commit 849cd6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 849cd6f

Please sign in to comment.