Skip to content

Commit

Permalink
feat(imp):[#214] add some error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jan 23, 2024
1 parent efb20dd commit 8dbff36
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ private List<AssetAdministrationShellDescriptor> fetchShellDescriptorsForConnect
log.debug("InterruptedException occurred while fetching shells for bpn '%s'".formatted(bpn), e);
Thread.currentThread().interrupt();
return emptyList();
} catch (ExecutionException e) {
} catch (ResultFinder.CompletionExceptions | ExecutionException e) {
// TODO do not log and throw, this is just for temporary debugging
log.error(e.getMessage(), e);
throw new RegistryServiceRuntimeException(
"Exception occurred while fetching shells for bpn '%s'".formatted(bpn), e);
} finally {
Expand Down Expand Up @@ -194,7 +196,9 @@ private Collection<String> lookupShellIds(final String bpn) {
log.debug("InterruptedException occurred while looking up shells ids for bpn '%s'".formatted(bpn), e);
Thread.currentThread().interrupt();
return emptyList();
} catch (ExecutionException e) {
} catch (ResultFinder.CompletionExceptions | ExecutionException e) {
// TODO do not log and throw, this is just for temporary debugging
log.error(e.getMessage(), e);
throw new RegistryServiceRuntimeException(
"Exception occurred while looking up shell ids for bpn '%s'".formatted(bpn), e);
}
Expand Down

0 comments on commit 8dbff36

Please sign in to comment.