mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #349 from CentroNet-Marketing/log-when-phased-restart-unavailable
Correctly report phased-restart availability and log when phased-restart is not available.
This commit is contained in:
commit
3e100f237f
1 changed files with 5 additions and 2 deletions
|
@ -503,8 +503,11 @@ module Puma
|
|||
end
|
||||
|
||||
def phased_restart
|
||||
return restart unless @runner.respond_to? :phased_restart
|
||||
return restart unless @runner.phased_restart
|
||||
unless @runner.respond_to?(:phased_restart) and @runner.phased_restart
|
||||
log "* phased-restart called but not available, restarting normally."
|
||||
return restart
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
def stats
|
||||
|
|
Loading…
Add table
Reference in a new issue