Log in fuction execute for stdout; stderr

This commit is contained in:
Yorick Barbanneau 2015-12-09 11:21:40 +01:00
parent 314fa316d2
commit 1be80fbec3

View file

@ -61,6 +61,7 @@ def execute(command, shell=False):
except OSError as ex: except OSError as ex:
logging.error('Could not run command %s: %s', command, ex) logging.error('Could not run command %s: %s', command, ex)
return return
logging.debug(stdout, stderr)
return stdout.strip() return stdout.strip()