diff --git a/aztk_cli/entrypoint.py b/aztk_cli/entrypoint.py index ccc656fa..2067b1cb 100644 --- a/aztk_cli/entrypoint.py +++ b/aztk_cli/entrypoint.py @@ -18,7 +18,6 @@ def _show_warn(message, *_args): log.warning(message) -warnings.showwarning = _show_warn def main(): parser = argparse.ArgumentParser(prog=constants.CLI_EXE) @@ -62,6 +61,7 @@ def parse_common_args(args: NamedTuple): logger.setup_logging(True) log.debug("Verbose logging enabled") else: + warnings.showwarning = _show_warn logger.setup_logging(False)