mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
fix log_call logging when command is a string
This commit is contained in:
parent
d26ba8bea4
commit
ec96de3a0e
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ def log_call(command, stdin=None, env=None, shell=False, cwd=None):
|
|||
|
||||
command_log = realpath(command[0]).replace('/', '.')
|
||||
log = logging.getLogger(__name__ + command_log)
|
||||
log.debug('Executing: {command}'.format(command=' '.join(command)))
|
||||
if type(command) is list:
|
||||
log.debug('Executing: {command}'.format(command=' '.join(command)))
|
||||
else:
|
||||
log.debug('Executing: {command}'.format(command=command))
|
||||
|
||||
process = subprocess.Popen(args=command, env=env, shell=shell, cwd=cwd,
|
||||
stdin=subprocess.PIPE,
|
||||
|
|
Loading…
Add table
Reference in a new issue