From fbad1cadf9c42d213fd668c3eb636651eabd722e Mon Sep 17 00:00:00 2001 From: Matt Welland Date: Thu, 31 Oct 2024 08:34:19 +1100 Subject: [PATCH] Crush some noisy logging (#929) --- cpg_workflows/workflow.py | 6 +++--- main.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpg_workflows/workflow.py b/cpg_workflows/workflow.py index 6e8e0d11b..bbd30c62b 100644 --- a/cpg_workflows/workflow.py +++ b/cpg_workflows/workflow.py @@ -639,7 +639,7 @@ def _get_action(self, target: TargetT) -> Action: if self.skipped: if reusable and not first_missing_path: - logging.info(f'{self.name}: {target} [REUSE] (stage skipped, and outputs exist)') + logging.debug(f'{self.name}: {target} [REUSE] (stage skipped, and outputs exist)') return Action.REUSE if get_config()['workflow'].get('skip_sgs_with_missing_input'): logging.warning( @@ -697,13 +697,13 @@ def _is_reusable(self, expected_out: ExpectedResultT) -> tuple[bool, Path | None Path | None: first missing path, if any """ if self.assume_outputs_exist: - logging.info(f'Assuming outputs exist. Expected output is {expected_out}') + logging.debug(f'Assuming outputs exist. Expected output is {expected_out}') return True, None if not expected_out: # Marking is reusable. If the stage does not naturally produce any outputs, # it would still need to create some flag file. - logging.info('No expected outputs, assuming outputs exist') + logging.debug('No expected outputs, assuming outputs exist') return True, None if get_config()['workflow'].get('check_expected_outputs'): diff --git a/main.py b/main.py index e6cb2fe4b..457179d25 100644 --- a/main.py +++ b/main.py @@ -105,7 +105,7 @@ def main( """ Run a Hail Batch workflow specified as a positional command line argument [WORKFLOW] """ - fmt = '%(asctime)s %(levelname)s (%(name)s %(lineno)s): %(message)s' + fmt = '%(asctime)s %(levelname)s (%(pathname)s %(lineno)s): %(message)s' coloredlogs.install(level='DEBUG' if verbose else 'INFO', fmt=fmt) if not workflow and not list_workflows: