Skip to content
Snippets Groups Projects
Commit fef85f9e authored by Hans Fangohr's avatar Hans Fangohr
Browse files

show more human-readable output with 'info'

and technical version with 'debug'
parent d53cfec5
No related branches found
No related tags found
1 merge request!23use rich for logging formatting (if package available)
Pipeline #368696 failed
......@@ -187,9 +187,9 @@ def run(*args, counter=[0], **kwargs):
options = ", ".join([f"{key}={value}" for key, value in kwargs.items()])
# provide information about upcoming subprocess.run call
logging.info(f"{token} Starting subprocess.run({arg}) with options {options}")
logging.info(f"{token} Starting subprocess.run('{command}') with options {options}")
logging.debug(f"{token} getcwd={os.getcwd()}")
logging.debug(f"{token} COMMAND={command}")
logging.debug(f"{token} exact call: subprocess.run({arg})")
time_start = time.time()
process = subprocess.run(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment