added debug logging for utility commands that are ran
This commit is contained in:
parent
86afded824
commit
1a867b9d1b
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,7 @@ def cmd(args, wait=True):
|
|||
:rtype: int
|
||||
"""
|
||||
args = split_args(args)
|
||||
logger.debug("command: %s", args)
|
||||
try:
|
||||
p = subprocess.Popen(args)
|
||||
if not wait:
|
||||
|
@ -196,6 +197,7 @@ def cmd_output(args):
|
|||
:raises CoreCommandError: when the file to execute is not found
|
||||
"""
|
||||
args = split_args(args)
|
||||
logger.debug("command: %s", args)
|
||||
try:
|
||||
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdout, _ = p.communicate()
|
||||
|
@ -219,6 +221,7 @@ def check_cmd(args, **kwargs):
|
|||
kwargs["stdout"] = subprocess.PIPE
|
||||
kwargs["stderr"] = subprocess.STDOUT
|
||||
args = split_args(args)
|
||||
logger.debug("command: %s", args)
|
||||
try:
|
||||
p = subprocess.Popen(args, **kwargs)
|
||||
stdout, _ = p.communicate()
|
||||
|
|
Loading…
Reference in a new issue