bump up verbosity of failed excute() to logger.info

This commit is contained in:
Martin A. Brown 2016-03-01 21:38:04 -08:00
parent bf99f97eba
commit efa2c9432a
1 changed files with 2 additions and 2 deletions

View File

@ -157,13 +157,13 @@ def execute(cmd, stdin=None, stdout=None, stderr=None,
if result != 0:
with open(stdoutname) as f:
for line in f:
logger.debug("STDOUT: %s", line.rstrip())
logger.info("STDOUT: %s", line.rstrip())
if isinstance(stderr, int) and stderrname:
os.close(stderr)
if result != 0:
with open(stderrname) as f:
for line in f:
logger.debug("STDERR: %s", line.rstrip())
logger.info("STDERR: %s", line.rstrip())
return result