Log command output in CsHelper.execute command (#2568)

This commit is contained in:
Rafael Weingärtner 2018-04-13 06:59:01 -03:00 committed by dahn
parent cf3c2d1aab
commit 20b93eaa06
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ def execute(command):
logging.info("Executing: %s" % command)
result = subprocess.check_output(command, shell=True)
returncode = 0
logging.debug("Command [%s] has the result [%s]" % (command, result))
return result.splitlines()
except subprocess.CalledProcessError as e:
logging.error(e)