From 150073e354329019b430f2291cd6c2bf82ee2cfa Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Wed, 15 Jan 2014 21:15:06 +0100 Subject: [PATCH] Log stdin in log_call --- common/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/tools.py b/common/tools.py index 31d76c2..2833b94 100644 --- a/common/tools.py +++ b/common/tools.py @@ -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,