Additional logging
This commit is contained in:
parent
31f1495833
commit
69ec6d2732
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user