Improve subprocess logging

This commit is contained in:
Mitchell Hashimoto 2013-01-31 19:47:54 -08:00
parent a8c7ad30ee
commit 4e6496bed7
1 changed files with 1 additions and 1 deletions

View File

@ -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?