mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Log stdin in log_call
This commit is contained in:
parent
0cfda1bdb5
commit
150073e354
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ def log_call(command, stdin=None, env=None):
|
||||||
command_log = realpath(command[0]).replace('/', '.')
|
command_log = realpath(command[0]).replace('/', '.')
|
||||||
log = logging.getLogger(__name__ + command_log)
|
log = logging.getLogger(__name__ + command_log)
|
||||||
log.debug('Executing: {command}'.format(command=' '.join(command)))
|
log.debug('Executing: {command}'.format(command=' '.join(command)))
|
||||||
|
if stdin is not None:
|
||||||
|
log.debug(' stdin: {stdin}'.format(stdin=stdin))
|
||||||
|
|
||||||
popen_args = {'args': command,
|
popen_args = {'args': command,
|
||||||
'env': env,
|
'env': env,
|
||||||
|
|
Loading…
Add table
Reference in a new issue