Remove VAGRANT_DEBUG.

VAGRANT_LOG handles it all now.
This commit is contained in:
Mitchell Hashimoto 2011-12-03 17:16:49 -08:00
parent 1a8c4199b2
commit fe65dd0dd5
1 changed files with 5 additions and 1 deletions

View File

@ -31,9 +31,13 @@ begin
# Kick start the CLI # Kick start the CLI
Vagrant::CLI.start(ARGV, :env => env) Vagrant::CLI.start(ARGV, :env => env)
rescue Vagrant::Errors::VagrantError => e rescue Vagrant::Errors::VagrantError => e
logger.error("Vagrant experienced an error! Details:")
logger.error(e.inspect)
logger.error(e.message)
logger.error(e.backtrace.join("\n"))
opts = { :prefix => false } opts = { :prefix => false }
env.ui.error e.message, opts if e.message env.ui.error e.message, opts if e.message
env.ui.error e.backtrace.join("\n"), opts if ENV["VAGRANT_DEBUG"]
exit e.status_code if e.respond_to?(:status_code) exit e.status_code if e.respond_to?(:status_code)
exit 999 # An error occurred with no status code defined exit 999 # An error occurred with no status code defined
end end