From a223194a6b7fbed5bf59647e2a6e3030026e10b2 Mon Sep 17 00:00:00 2001 From: mhagger Date: Sat, 16 Oct 2010 08:33:26 +0000 Subject: [PATCH] Log commands (at DEBUG level) before running them. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5291 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/process.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cvs2svn_lib/process.py b/cvs2svn_lib/process.py index a082d5d0..c39739fc 100644 --- a/cvs2svn_lib/process.py +++ b/cvs2svn_lib/process.py @@ -21,6 +21,7 @@ import subprocess from cvs2svn_lib.common import FatalError from cvs2svn_lib.common import CommandError +from cvs2svn_lib.log import logger def call_command(command, **kw): @@ -30,6 +31,7 @@ def call_command(command, **kw): with a non-zero exit code. Pass KW as keyword arguments to subprocess.call().""" + logger.debug('Running command %r' % (command,)) try: retcode = subprocess.call(command, **kw) if retcode < 0: @@ -67,6 +69,7 @@ def check_command_runs(command, commandname): doesn't output anything to stderr. If any of these conditions is not met, raise a CommandFailedException describing the problem.""" + logger.debug('Running command %r' % (command,)) try: pipe = subprocess.Popen( command, @@ -96,6 +99,7 @@ def get_command_output(command): """A file-like object from which revision contents can be read.""" + logger.debug('Running command %r' % (command,)) pipe = subprocess.Popen( command, stdin=subprocess.PIPE, -- 2.11.4.GIT