Add external command invocations to debugging output.
[update-copyright.git] / update_copyright / vcs / utils.py
index ada2ec03b79a9a0398b71342f64d3d3ae1bad7a8..024568eae143851d294b4a47f65eb1e90638d04f 100644 (file)
@@ -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,