Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdurand committed Aug 27, 2020
1 parent 7e14b87 commit bbba73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lumberjack/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ def tags
def untagged(&block)
Lumberjack.use_context(nil) do
scope_tags = thread_local_value(:lumberjack_logger_tags)
untagged = thread_local_value(:lumberjack_logger_untagged)
untagged = thread_local_value(:lumberjack_logger_untagged)
begin
set_thread_local_value(:lumberjack_logger_untagged, true)
set_thread_local_value(:lumberjack_logger_tags, nil)
tag({}, &block)
ensure
set_thread_local_value(:lumberjack_logger_untagged,untagged)
set_thread_local_value(:lumberjack_logger_untagged, untagged)
set_thread_local_value(:lumberjack_logger_tags, scope_tags)
end
end
Expand Down

0 comments on commit bbba73a

Please sign in to comment.