Add debug logging to `run()` (#9986)

master
Ryan 2020-08-29 01:03:42 +10:00 committed by GitHub
parent c9eaf1ac2b
commit 0f9b7b9768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import subprocess
import shlex
import shutil
from milc import cli
import qmk.keymap
@ -83,4 +84,6 @@ def run(command, *args, **kwargs):
safecmd = ' '.join(safecmd)
command = [os.environ['SHELL'], '-c', safecmd]
cli.log.debug('Running command: %s', command)
return subprocess.run(command, *args, **kwargs)