just send all output to stdout/stderr for now, easier to debug

This commit is contained in:
James Slagle 2013-08-08 13:16:51 -04:00
parent 273ac25c23
commit 3e64c4aee1
1 changed files with 4 additions and 5 deletions

View File

@ -16,14 +16,13 @@
import logging
import subprocess
import sys
def call(*args, **kwargs):
logging.debug('executing command: %s' % args)
p = subprocess.Popen(*args, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, **kwargs)
p = subprocess.Popen(*args, stdout=sys.stdout,
stderr=sys.stderr, **kwargs)
rc = p.wait()
logging.debug(' stdout: %s' % p.stdout.read())
logging.debug(' stderr: %s' % p.stderr.read())
logging.debug(' exited with code: %s' % rc)
return