lib/vagrant/config/v2/root.rb in vagrant-unbundled-2.0.1.0 vs lib/vagrant/config/v2/root.rb in vagrant-unbundled-2.0.2.0
- old
+ new
@@ -14,10 +14,11 @@
# @param [Hash] config_map Map of key to config class.
def initialize(config_map, keys=nil)
@keys = keys || {}
@config_map = config_map
@missing_key_calls = Set.new
+ @logger = Log4r::Logger.new("vagrant::config")
end
# We use method_missing as a way to get the configuration that is
# used for Vagrant and load the proper configuration classes for
# each.
@@ -28,9 +29,10 @@
if config_klass
# Instantiate the class and return the instance
@keys[name] = config_klass.new
return @keys[name]
else
+ @logger.debug("missing key request name=#{name} loc=#{caller.first}")
# Record access to a missing key as an error
@missing_key_calls.add(name.to_s)
return DummyConfig.new
end
end