Skip to content

Commit

Permalink
feat(imp):[#214] improve exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jan 26, 2024
1 parent 9a53cfd commit 672d797
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,15 @@ private Collection<String> lookupShellIds(final String bpn) throws RegistryServi
final var logPrefix = LOGPREFIX_TO_BE_REMOVED_LATER + "lookupShellIds - ";
log.info(logPrefix + "Looking up shell ids for bpn {}", bpn);

final var connectorEndpoints = connectorEndpointsService.fetchConnectorEndpoints(bpn);
log.info(logPrefix + "Looking up shell ids for bpn '{}' with connector endpoints {}", bpn, connectorEndpoints);
try {

final var endpointDataReferenceFutures = endpointDataForConnectorsService.createFindEndpointDataForConnectorsFutures(
connectorEndpoints);
log.info(logPrefix + "Created endpointDataReferenceFutures");
final var connectorEndpoints = connectorEndpointsService.fetchConnectorEndpoints(bpn);
log.info(logPrefix + "Looking up shell ids for bpn '{}' with connector endpoints {}", bpn,
connectorEndpoints);

try {
final var endpointDataReferenceFutures = endpointDataForConnectorsService.createFindEndpointDataForConnectorsFutures(
connectorEndpoints);
log.info(logPrefix + "Created endpointDataReferenceFutures");

return lookupShellIds(bpn, endpointDataReferenceFutures, logPrefix);

Expand Down

0 comments on commit 672d797

Please sign in to comment.