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:
parent
4b1069a831
commit
cc8bbb69f5
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ module Sidekiq
|
||||||
when 'USR2'
|
when 'USR2'
|
||||||
if Sidekiq.options[:logfile]
|
if Sidekiq.options[:logfile]
|
||||||
Sidekiq.logger.info "Received USR2, reopening log file"
|
Sidekiq.logger.info "Received USR2, reopening log file"
|
||||||
Sidekiq::Logging.initialize_logger(Sidekiq.options[:logfile])
|
initialize_logger
|
||||||
end
|
end
|
||||||
when 'TTIN'
|
when 'TTIN'
|
||||||
Thread.list.each do |thread|
|
Thread.list.each do |thread|
|
||||||
|
|
Loading…
Reference in a new issue