core: log when OUT actions are called in middleware

This commit is contained in:
Mitchell Hashimoto 2013-09-15 17:18:34 -07:00
parent 07982efde2
commit 5054ae95fd
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@ module Vagrant
# of "recoverable" middlewares in case something goes wrong!
raise Errors::VagrantInterrupt if env[:interrupted]
action = @actions.shift
@logger.info("Calling action: #{action}")
@logger.info("Calling IN action: #{action}")
@stack.unshift(action).first.call(env)
raise Errors::VagrantInterrupt if env[:interrupted]
@logger.info("Calling OUT action: #{action}")
rescue SystemExit
# This means that an "exit" or "abort" was called. In these cases,
# we just exit immediately.