From aef2c5f48e3e8e854f312c65a6c5dbb0a8a73b84 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 16 Jul 2012 14:21:04 -0700 Subject: [PATCH] Logging statements to Vagrant::Machine --- lib/vagrant/machine.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index e807a65a1..78a74b2d3 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -35,6 +35,11 @@ module Vagrant # @param [Environment] env The environment that this machine is a # part of. def initialize(name, provider_cls, config, box, env) + @logger = Log4r::Logger.new("vagrant::machine") + @logger.debug("Initializing machine: #{name}") + @logger.debug(" - Provider: #{provider_cls}") + @logger.debug(" - Box: #{box}") + @name = name @box = box @config = config @@ -47,6 +52,8 @@ module Vagrant # # @param [Symbol] name Name of the action to run. def action(name) + @logger.debug("Calling action: #{name} on provider #{@provider}") + # Get the callable from the provider. callable = @provider.action(name)