From b130c613191a36a20742f263f0031222d771563f Mon Sep 17 00:00:00 2001 From: Croft Date: Tue, 30 Apr 2024 13:38:14 +0200 Subject: [PATCH] Added extra diagnostics around initialization Testing suggests that this might be a problem area --- pom.xml | 4 ++-- .../java/de/samply/directory_sync_service/DirectorySync.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 2104531..aa47519 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ de.samply directory_sync_service - 1.3.0 + 1.3.1 directory_sync_service Directory sync https://github.com/samply/directory_sync_service @@ -51,7 +51,7 @@ de.samply directory-sync - 0.3.0 + 0.3.1 diff --git a/src/main/java/de/samply/directory_sync_service/DirectorySync.java b/src/main/java/de/samply/directory_sync_service/DirectorySync.java index 3ef8c9f..0201444 100644 --- a/src/main/java/de/samply/directory_sync_service/DirectorySync.java +++ b/src/main/java/de/samply/directory_sync_service/DirectorySync.java @@ -88,8 +88,9 @@ private boolean syncWithDirectory(Configuration configuration) { FhirApi fhirApi = createFhirApi(fhirStoreUrl); FhirReporting fhirReporting = new FhirReporting(ctx, fhirApi); Sync sync = new Sync(fhirApi, fhirReporting, directoryApi, directoryService); - if (sync.initResources().isLeft()) { - logger.error("__________ syncWithDirectory: problem initializing FHIR resources"); + Either initResourcesOutcome = sync.initResources(); + if (initResourcesOutcome.isLeft()) { + logger.error("__________ syncWithDirectory: problem initializing FHIR resources: " + initResourcesOutcome.getLeft()); return false; } List operationOutcomes;