From 8dbad22d728fe9ba35d7dc3c51ac2e8356c4117f Mon Sep 17 00:00:00 2001 From: Teemu Matilainen Date: Wed, 18 Dec 2013 00:07:17 -0300 Subject: [PATCH] core: list VAGRANT_* env vars in debug log Help support and debugging by printing all `VAGRNAT_*` environment variables that have been set by either user or Vagrant. --- lib/vagrant.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index e8f2f16c0..da8df7a82 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -60,6 +60,9 @@ global_logger = Log4r::Logger.new("vagrant::global") global_logger.info("Vagrant version: #{Vagrant::VERSION}") global_logger.info("Ruby version: #{RUBY_VERSION}") global_logger.info("RubyGems version: #{Gem::VERSION}") +ENV.each do |k, v| + global_logger.info("#{k}=#{v.inspect}") if k =~ /^VAGRANT_/ +end # We need these components always so instead of an autoload we # just require them explicitly here.