Snakemake version
9.16.3 starting from 9.0.0 after pr #3107 was merged
Describe the bug
Snakemake does not respect Quietness.HOST (it gets printed regardless of the setting), because the quietness for it is not being checked anymore
Before the said pr, it was handled like this:
|
def host_info(self): |
|
self.handler(dict(level="host")) |
|
if level == "host" and not self.is_quiet_about("host"): |
|
self.logger.info(f"host: {platform.node()}") |
Now its handled like this:
|
def format_host(self, msg: dict[str, Any]): |
|
"""Format for host log.""" |
|
return f"host: {platform.node()}" |
|
logger.info(f"host: {platform.node()}") |
Logs
Assuming unrestricted shared filesystem usage.
host: 30ce4498b4d8
Building DAG of jobs...
Using shell: /usr/bin/bash
Minimal example
Run snakemake with --quiet host
Snakemake version
9.16.3 starting from 9.0.0 after pr #3107 was merged
Describe the bug
Snakemake does not respect Quietness.HOST (it gets printed regardless of the setting), because the quietness for it is not being checked anymore
Before the said pr, it was handled like this:
snakemake/snakemake/workflow.py
Line 1099 in 8fd44d9
snakemake/snakemake/logging.py
Lines 445 to 446 in 8fd44d9
snakemake/snakemake/logging.py
Lines 539 to 540 in 8fd44d9
Now its handled like this:
snakemake/src/snakemake/logging.py
Lines 164 to 166 in f5b0142
snakemake/src/snakemake/workflow.py
Line 1260 in f5b0142
Logs
Assuming unrestricted shared filesystem usage.
host: 30ce4498b4d8
Building DAG of jobs...
Using shell: /usr/bin/bash
Minimal example
Run snakemake with --quiet host