From 5054ae95fdb55f6e28b2eb59d9d400a51a1a4e93 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 15 Sep 2013 17:18:34 -0700 Subject: [PATCH] core: log when OUT actions are called in middleware --- lib/vagrant/action/warden.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/warden.rb b/lib/vagrant/action/warden.rb index d01b88caf..ddf3d83b0 100644 --- a/lib/vagrant/action/warden.rb +++ b/lib/vagrant/action/warden.rb @@ -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.