Skip to content

Commit

Permalink
Merge pull request #93 from folio-org/EDGPATRON-101
Browse files Browse the repository at this point in the history
EDGPATRON-101: Improve error logging for external requests
  • Loading branch information
K-Felk authored Sep 15, 2022
2 parents 406b615 + c65e834 commit 89be208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/folio/edge/patron/PatronHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ protected void handleCommon(RoutingContext ctx, String[] requiredParams, String[
action.apply(patronClient, params);
})
.onFailure(t -> {
logger.error("Error retrieving user data from cache or mod-user: ", t);
if (isTimeoutException(t)) {
requestTimeout(ctx, t.getMessage());
} else {
Expand Down Expand Up @@ -265,7 +266,7 @@ protected void handleProxyResponse(RoutingContext ctx, HttpResponse<Buffer> resp

@Override
protected void handleProxyException(RoutingContext ctx, Throwable t) {
logger.error("Exception calling OKAPI", t);
logger.error("Exception retrieving data from mod-patron:", t);
if (isTimeoutException(t)) {
requestTimeout(ctx, t.getMessage());
} else {
Expand Down

0 comments on commit 89be208

Please sign in to comment.