Skip to content

Commit

Permalink
tags_text() can actually be nil...
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 6, 2023
1 parent 0671acf commit ca0d652
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion activesupport/lib/active_support/tagged_logging.rb
Expand Up @@ -29,7 +29,11 @@ module TaggedLogging
module Formatter # :nodoc:
# This method is invoked when a log event occurs.
def call(severity, timestamp, progname, msg)
super(severity, timestamp, progname, tags_text.concat(msg))
if t = tags_text
super(severity, timestamp, progname, t.concat(msg))
else
super(severity, timestamp, progname, msg)
end
end

def tagged(*tags)
Expand Down

0 comments on commit ca0d652

Please sign in to comment.