Log stdin in log_call

This commit is contained in:
Anders Ingemann 2014-01-15 21:15:06 +01:00
parent 0cfda1bdb5
commit 150073e354

View file

@ -17,6 +17,8 @@ def log_call(command, stdin=None, env=None):
command_log = realpath(command[0]).replace('/', '.')
log = logging.getLogger(__name__ + command_log)
log.debug('Executing: {command}'.format(command=' '.join(command)))
if stdin is not None:
log.debug(' stdin: {stdin}'.format(stdin=stdin))
popen_args = {'args': command,
'env': env,