Skip to content

Commit

Permalink
fix tagged logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Dec 10, 2024
1 parent 1721ea8 commit bec0a4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/deimos/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ module Logging
class << self

def log_add(method, msg)
Karafka.logger.tagged('Deimos') do |logger|
if Karafka.logger.respond_to?(:tagged)
Karafka.logger.tagged('Deimos') do |logger|
logger.send(method, msg.to_json)
end
else
logger.send(method, msg.to_json)
end

Expand Down

0 comments on commit bec0a4d

Please sign in to comment.