Better logging in the GracefulHalt middleware

This commit is contained in:
Mitchell Hashimoto 2013-01-22 12:13:42 -08:00
parent 0fc7cf7f02
commit fb875ab642
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ module Vagrant
# The result of this matters on whether we reached our
# proper target state or not.
env[:result] = env[:machine].state.id == @target_state
if env[:result]
@logger.info("Gracefully halted.")
else
@logger.info("Graceful halt failed.")
end
end
@app.call(env)