From a6e4288e1c03f29952c514a8990e71cf754a706a Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Wed, 31 Jan 2024 13:07:27 +0100 Subject: [PATCH] feat(imp):[#214] Cleanup --- .../decentral/DecentralDigitalTwinRegistryService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryService.java b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryService.java index 29a74348a5..9e59b9b43f 100644 --- a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryService.java +++ b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryService.java @@ -273,7 +273,7 @@ private Collection lookupShellIds(final String bpn) throws RegistryServi } catch (RuntimeException e) { // catching generic exception is intended here, // otherwise Jobs stay in state RUNNING forever - log.error(logPrefix + e.getMessage(), e); // TODO (mfischer) #214 do not log and throw + log.error(logPrefix + e.getMessage(), e); final var msg = logPrefix + e.getClass().getSimpleName() + " occurred while looking up shell ids for bpn '%s'".formatted(bpn); throw new RegistryServiceException(msg, e); @@ -298,12 +298,12 @@ private Collection lookupShellIds(final String bpn, } catch (InterruptedException e) { log.error(logPrefix + "InterruptedException occurred while looking up shells ids for bpn '%s': ".formatted( - bpn) + e.getMessage(), e); // #214 do not log and throw + bpn) + e.getMessage(), e); Thread.currentThread().interrupt(); throw new RegistryServiceException(LOGPREFIX_TO_BE_REMOVED_LATER + e.getClass().getSimpleName() + " occurred while looking up shell ids for bpn '%s'".formatted(bpn), e); } catch (ExecutionException e) { - log.error(logPrefix + e.getMessage(), e); // TODO (mfischer) #214 do not log and throw + log.error(logPrefix + e.getMessage(), e); throw new RegistryServiceException(LOGPREFIX_TO_BE_REMOVED_LATER + e.getClass().getSimpleName() + " occurred while looking up shell ids for bpn '%s'".formatted(bpn), e); }