diff --git a/lib/vagrant/shared_helpers.rb b/lib/vagrant/shared_helpers.rb index b195c36df..12545ae4f 100644 --- a/lib/vagrant/shared_helpers.rb +++ b/lib/vagrant/shared_helpers.rb @@ -52,6 +52,13 @@ module Vagrant !!ENV["VAGRANT_I_KNOW_WHAT_IM_DOING_PLEASE_BE_QUIET"] end + # The current log level for Vagrant + # + # @return [String] + def self.log_level + ENV["VAGRANT_LOG"] + end + # Returns the URL prefix to the server. # # @return [String] diff --git a/plugins/pushes/atlas/push.rb b/plugins/pushes/atlas/push.rb index 24a6d28b0..8a892fa2c 100644 --- a/plugins/pushes/atlas/push.rb +++ b/plugins/pushes/atlas/push.rb @@ -23,6 +23,7 @@ module VagrantPlugins # if we're on a system that doesn't support exec, so handle that properly. def execute(uploader) cmd = [] + cmd << "-debug" if !Vagrant.log_level.nil? cmd << "-vcs" if config.vcs cmd += config.includes.map { |v| ["-include", v] } cmd += config.excludes.map { |v| ["-exclude", v] }