mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Log commands executed
This commit is contained in:
parent
0eb5eecfc2
commit
c917c3bd65
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ def log_call(command, stdin=None):
|
|||
from os.path import realpath
|
||||
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:
|
||||
process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
|
Loading…
Add table
Reference in a new issue