From b5eb468c7c8c7d8d3b5bf546824dfeb29b154364 Mon Sep 17 00:00:00 2001 From: fatkodima Date: Sun, 8 Sep 2019 03:21:37 +0300 Subject: [PATCH] Do not reset the whole logger when format changes --- lib/sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq.rb b/lib/sidekiq.rb index 111d311d..827b0698 100644 --- a/lib/sidekiq.rb +++ b/lib/sidekiq.rb @@ -192,7 +192,7 @@ module Sidekiq def self.log_formatter=(log_formatter) @log_formatter = log_formatter - @logger = nil + logger.formatter = log_formatter end def self.logger