From 69ec6d2732cb97edcc2bc80620e7b9010f8bd6ff Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 3 Oct 2024 12:26:35 +0100 Subject: [PATCH] Additional logging --- src/local_mode.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/local_mode.py b/src/local_mode.py index a11f416..6f4ac30 100644 --- a/src/local_mode.py +++ b/src/local_mode.py @@ -6,6 +6,8 @@ def start(): if not owlboard_connector.check_connection(): print("Exiting") sys.exit(1) + else: + print("OwlBoard connection successful") working_directory = os.getcwd() print("Working directory: ", working_directory) @@ -26,9 +28,10 @@ def start(): print(f"Found {len(results)} PIS Codes in documents") missing_pis = pis_find.run(results) + print(missing_pis) get_detail = [] for code in missing_pis: - print(code) + print(f"Fetching services with code: {code}") services = owlboard_connector.get_services(code['headcode'], code['date']) get_detail.append({ 'pis': code['pis'], @@ -59,7 +62,7 @@ def start(): f.write('\n---\n') f.write(formatted_additions) f.close() - + gitea_connector.clone_repository() gitea_connector.commit_and_push_changes(formatted_additions,"From owlbot diagram-parser")