diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index 0aaf36501f..c510515f99 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -33,7 +33,12 @@ def call(severity, timestamp, progname, msg) end def tagged(*tags) - new_tags = push_tags(*tags) + new_tags = if tags.length == 1 + current_tags << tags[0] unless tags[0].blank? + tags + else + push_tags(*tags) + end yield self ensure pop_tags(new_tags.size)