1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

extend the single object, don't touch the class

This commit is contained in:
Mike Perham 2019-09-05 12:03:17 -07:00
parent c3ea67a79b
commit e30e33b6c5

View file

@ -205,7 +205,7 @@ module Sidekiq
end
unless logger.is_a?(Sidekiq::LogContext)
logger.class.send(:include, Sidekiq::LogContext)
logger.extend(Sidekiq::LogContext)
end
@logger = logger