Skip to content

Commit

Permalink
chore: PPABV-77 log authorization request id and transaction id for a…
Browse files Browse the repository at this point in the history
…uthorization request operation (#602)

* chore: log authorization request id and transaction id for authorization request operation when saving the event

* chore: log rewording
  • Loading branch information
sfarralorenzo authored Jan 14, 2025
1 parent 359c457 commit 0b51d22
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ public Mono<RequestAuthorizationResponseDto> handle(TransactionRequestAuthorizat
);

return transactionEventStoreRepository.save(authorizationEvent)
.doOnNext(e -> {
String authorizationRequestId = e.getData().getAuthorizationRequestId();
String transactionId = t.getTransactionId().value();
log.info("Saved the TRANSACTION_AUTHORIZATION_REQUESTED_EVENT event for transactionId: [{}] and authorizationRequestId: [{}]", transactionId, authorizationRequestId);
})
.flatMap(
e -> Mono
.just(
Expand Down

0 comments on commit 0b51d22

Please sign in to comment.