Skip to content
Snippets Groups Projects
Commit 52dd0c8c authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

Merge branch 'add-high-level-info-what-is-happening' into 'main'

Add new info message (and reduce verbosity of run command)

See merge request mpsd-cs/mpsd-software-environments!34
parents 67e9abfb 6c7f3c4e
No related branches found
No related tags found
1 merge request!34Add new info message (and reduce verbosity of run command)
Pipeline #370502 passed
...@@ -407,7 +407,9 @@ def run(*args, counter=[0], **kwargs): ...@@ -407,7 +407,9 @@ 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} subprocess.run("{arg}")""") logging.debug(f"""{token} subprocess.run("{arg}")""")
...@@ -633,6 +635,8 @@ def prepare_environment(mpsd_release: str, root_dir: Path) -> List[str]: ...@@ -633,6 +635,8 @@ def prepare_environment(mpsd_release: str, root_dir: Path) -> List[str]:
available_toolchains : list available_toolchains : list
A list of available toolchains for the given MPSD release. A list of available toolchains for the given MPSD release.
""" """
logging.info(f"Preparing {mpsd_release=}")
# Creates the directory structure for the specified release and clone the # Creates the directory structure for the specified release and clone the
# Spack environments repository if it doesn't exist: # Spack environments repository if it doesn't exist:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment