From e30e33b6c5c970b599f9d193cf7ab226574f6a8e Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 5 Sep 2019 12:03:17 -0700 Subject: [PATCH] extend the single object, don't touch the class --- lib/sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq.rb b/lib/sidekiq.rb index 15b4a5ed..445ab7ab 100644 --- a/lib/sidekiq.rb +++ b/lib/sidekiq.rb @@ -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