From: W. Trevor King Date: Wed, 14 Mar 2012 11:45:39 +0000 (-0400) Subject: Add external command invocations to debugging output. X-Git-Tag: v0.4~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de8a338379703047c17997f5035e94ad0b0bafa9;p=update-copyright.git Add external command invocations to debugging output. --- diff --git a/update_copyright/vcs/utils.py b/update_copyright/vcs/utils.py index ada2ec0..024568e 100644 --- a/update_copyright/vcs/utils.py +++ b/update_copyright/vcs/utils.py @@ -23,6 +23,7 @@ import os.path as _os_path import subprocess as _subprocess import sys as _sys +from .. import LOG as LOG from ..utils import ENCODING as _ENCODING @@ -39,6 +40,7 @@ def invoke(args, stdin=None, stdout=_subprocess.PIPE, stderr=_subprocess.PIPE, When ``unicode_output`` is ``True``, convert stdout and stdin strings to unicode before returing them. """ + LOG.debug('{}$ {}'.format(cwd, args)) try : if _POSIX: q = _subprocess.Popen(args, stdin=_subprocess.PIPE,