1
0
Fork 0
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:
Evan Phoenix 2013-08-08 15:53:34 -07:00
commit 3e100f237f

View file

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