From cc8bbb69f5049aa183e307741a0c518425902bd7 Mon Sep 17 00:00:00 2001 From: Fredrik Petrini Date: Sun, 25 Aug 2013 15:00:59 +0200 Subject: [PATCH] Use the same method to reopen log after USR2 as is used during startup. Fixes #1132 --- lib/sidekiq/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index ef52493f..f8d23c89 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -108,7 +108,7 @@ module Sidekiq when 'USR2' if Sidekiq.options[:logfile] Sidekiq.logger.info "Received USR2, reopening log file" - Sidekiq::Logging.initialize_logger(Sidekiq.options[:logfile]) + initialize_logger end when 'TTIN' Thread.list.each do |thread|