From 810640ae9a6eee0c9a0317aa6b353406bf313f96 Mon Sep 17 00:00:00 2001 From: ashuaibi7 Date: Sat, 21 Dec 2024 11:06:16 -0500 Subject: [PATCH] configure logging level in main according to passed in verbose parameter --- src/dialect/__main__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dialect/__main__.py b/src/dialect/__main__.py index f426322..c41d41f 100644 --- a/src/dialect/__main__.py +++ b/src/dialect/__main__.py @@ -8,16 +8,14 @@ identify_pairwise_interactions, ) -configure_logging() - -# TODO: add option for verbose logging def main(): - logging.info("Running DIALECT CLI") - parser = build_argument_parser() args = parser.parse_args() + configure_logging(args.verbose) + # TODO: Add TODO statements to all files requiring logging changes + logging.info("Running DIALECT CLI") logging.info(f"Arguments: {args}") logging.info(f"Command: {args.command}")