Skip to content

Commit

Permalink
Add request information to createPayPalOneTimePayment failure log
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-signal authored Jan 14, 2025
1 parent 2f51778 commit ee10165
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ CompletableFuture<CreatePayPalOneTimePaymentMutation.CreatePayPalOneTimePayment>
final CreatePayPalOneTimePaymentMutation.Data data = assertSuccessAndExtractDataFromApolloResponse(apolloResponse);
if (data.createPayPalOneTimePayment == null) {
logger.warn(
"createPayPalOneTimePayment requestId={} did not have any errors but data was null. response={}",
apolloResponse.extensions.getOrDefault("requestId", "<No-Request-Id>"), httpResponse.body());
"createPayPalOneTimePayment requestId={} currency={} amount={} did not have any errors but data was null. response={}",
apolloResponse.extensions.getOrDefault("requestId", "<No-Request-Id>"),
currency, amount, httpResponse.body());
throw new ServiceUnavailableException();
}
return data.createPayPalOneTimePayment;
Expand Down

0 comments on commit ee10165

Please sign in to comment.