File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/com/adyen/notification Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1111import com .adyen .model .transferwebhooks .TransferNotificationRequest ;
1212import com .adyen .model .transactionwebhooks .TransactionNotificationRequestV4 ;
1313import java .util .Optional ;
14+ import java .util .logging .Logger ;
1415
1516public class BankingWebhookHandler {
17+
18+ private static final Logger LOG = Logger .getLogger (BankingWebhookHandler .class .getName ());
19+
1620 private final String payload ;
1721
1822 public BankingWebhookHandler (String payload ) {
@@ -59,6 +63,7 @@ private <T> Optional<T> getOptionalField(Class<T> clazz) {
5963 T val = JSON .getMapper ().readValue (payload , clazz );
6064 return Optional .ofNullable (val );
6165 } catch (Exception e ) {
66+ LOG .warning ("Deserialization error: " + e .getMessage ());
6267 return Optional .empty ();
6368 }
6469 }
You can’t perform that action at this time.
0 commit comments