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

Use the same method to reopen log after USR2 as is used during startup. Fixes #1132

This commit is contained in:
Fredrik Petrini 2013-08-25 15:00:59 +02:00
parent 4b1069a831
commit cc8bbb69f5

View file

@ -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|