From: Luke Kenneth Casson Leighton Date: Fri, 2 Jun 2023 09:27:15 +0000 (+0100) Subject: move the print-statements to capture error/warnings in ```code``` X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd514bfd05284f9934451cfedfcd600a4ec7478a;p=utils.git move the print-statements to capture error/warnings in ```code``` --- diff --git a/src/budget_sync/main.py b/src/budget_sync/main.py index 3f8c996..a5ec9fa 100644 --- a/src/budget_sync/main.py +++ b/src/budget_sync/main.py @@ -48,8 +48,8 @@ def main(): except (IOError, ConfigParseError) as e: logging.error("Failed to parse config file: %s", e) return - print("```") # for using the output as markdown logging.info("Using Bugzilla instance at %s", config.bugzilla_url) + print("```") # for using the output as markdown bz = Bugzilla(config.bugzilla_url) if args.username: logging.debug("logging in...") @@ -69,6 +69,7 @@ def main(): write_budget_markdown(budget_graph, args.output_dir) write_budget_csv(budget_graph, args.output_dir) summarize_milestones(budget_graph) + print("```") # for using the output as markdown json_milestones(budget_graph, args.comments, args.output_dir) @@ -150,7 +151,6 @@ def summarize_milestones(budget_graph: BudgetGraph): milestone.canonical_bug_id) print() - print("```") # for using the output as markdown def json_milestones(budget_graph: BudgetGraph, add_comments: bool,