From 4e6496bed7958098fc99f122be4b0beab1250f5f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 31 Jan 2013 19:47:54 -0800 Subject: [PATCH] Improve subprocess logging --- lib/vagrant/util/subprocess.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index 7fb6499c0..dfee6e5a3 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -159,9 +159,9 @@ module Vagrant next if extra_data == "" # Log it out and accumulate - @logger.debug(extra_data) io_name = io == stdout ? :stdout : :stderr io_data[io_name] += extra_data + @logger.debug("#{io_name}: #{extra_data}") # Yield to any listeners any remaining data yield io_name, extra_data if block_given?