From 257441ed78a32bdeef5435e27dae0cb939466250 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 3 Jan 2018 09:41:45 -0800 Subject: [PATCH] Log location of caller for missing configuration key requests --- lib/vagrant/config/v2/root.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/config/v2/root.rb b/lib/vagrant/config/v2/root.rb index f4a18c10b..b41e5c031 100644 --- a/lib/vagrant/config/v2/root.rb +++ b/lib/vagrant/config/v2/root.rb @@ -16,6 +16,7 @@ module Vagrant @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 @@ -30,6 +31,7 @@ module Vagrant @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