core: log when OUT actions are called in middleware
This commit is contained in:
parent
07982efde2
commit
5054ae95fd
|
@ -30,9 +30,10 @@ module Vagrant
|
||||||
# of "recoverable" middlewares in case something goes wrong!
|
# of "recoverable" middlewares in case something goes wrong!
|
||||||
raise Errors::VagrantInterrupt if env[:interrupted]
|
raise Errors::VagrantInterrupt if env[:interrupted]
|
||||||
action = @actions.shift
|
action = @actions.shift
|
||||||
@logger.info("Calling action: #{action}")
|
@logger.info("Calling IN action: #{action}")
|
||||||
@stack.unshift(action).first.call(env)
|
@stack.unshift(action).first.call(env)
|
||||||
raise Errors::VagrantInterrupt if env[:interrupted]
|
raise Errors::VagrantInterrupt if env[:interrupted]
|
||||||
|
@logger.info("Calling OUT action: #{action}")
|
||||||
rescue SystemExit
|
rescue SystemExit
|
||||||
# This means that an "exit" or "abort" was called. In these cases,
|
# This means that an "exit" or "abort" was called. In these cases,
|
||||||
# we just exit immediately.
|
# we just exit immediately.
|
||||||
|
|
Loading…
Reference in New Issue