Skip to content

Commit

Permalink
Log mollie error response
Browse files Browse the repository at this point in the history
  • Loading branch information
elzes committed Dec 1, 2024
1 parent 9346630 commit c4ee801
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ private PaymentResult initPayment(TicketReservation reservation,
}
} else {
log.warn("was not able to create a payment for reservation id " + reservationId);
try (InputStream inputStream = response.body()) {
log.warn(new String(inputStream.readAllBytes()));
}
return PaymentResult.failed(ErrorsCode.STEP_2_PAYMENT_REQUEST_CREATION);
}
}
Expand Down

0 comments on commit c4ee801

Please sign in to comment.