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

Reduce output from run() (info -> debug)

Motivation:

- the actual command we run is pretty meaningless without context.
- to provide the context, we would need to add additional 'logging.info' command
  BEFORE we call `run`
- if we select loglevel `debug` we get to see the same output as before.
parent e76d0942
No related branches found
No related tags found
1 merge request!34Add new info message (and reduce verbosity of run command)
Pipeline #370363 failed
...@@ -324,7 +324,7 @@ def run(*args, counter=[0], **kwargs): ...@@ -324,7 +324,7 @@ def run(*args, counter=[0], **kwargs):
options = ", ".join([f"{key}={value}" for key, value in kwargs.items()]) options = ", ".join([f"{key}={value}" for key, value in kwargs.items()])
# provide information about upcoming subprocess.run call # provide information about upcoming subprocess.run call
logging.info(f"{token} Starting subprocess.run('{command}') with options {options}") logging.debug(f"{token} Starting subprocess.run('{command}') with options {options}")
logging.debug(f"{token} getcwd={os.getcwd()}") logging.debug(f"{token} getcwd={os.getcwd()}")
logging.debug(f"{token} exact call: subprocess.run({arg})") logging.debug(f"{token} exact call: subprocess.run({arg})")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment