Skip to content

Commit

Permalink
Merge branch 'issue-137' into 'master'
Browse files Browse the repository at this point in the history
Fine level exceptions logging for total and partial failures

See merge request ghsc/hazdev/pdl!144
  • Loading branch information
jmfee-usgs committed May 5, 2021
2 parents 8d33404 + 078deda commit 04e82a1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ public static Map<ProductSender, Exception> parallelSendProduct(final List<Produ
sender.sendProduct(product);
sendComplete.put(sender, true);
} catch (Exception e) {
sendExceptions.put(sender, e);
if (e instanceof ProductAlreadyInStorageException) {
LOGGER.info("Product already in storage, id=" + product.getId().toString());
} else {
LOGGER.log(Level.WARNING, "[" + sender.getName() + "] error sending product", e);
sendExceptions.put(sender, e);
}
}
return null;
});
Expand Down

0 comments on commit 04e82a1

Please sign in to comment.