Skip to content

Commit

Permalink
Move log before super handler to maintain correct order of logs
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Dec 26, 2022
1 parent 4c237dc commit 72b55f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ public void onPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler e

@Override
protected void onTradeMessage(TradeMessage message, NodeAddress peer) {
super.onTradeMessage(message, peer);

log.info("Received {} from {} with tradeId {} and uid {}",
message.getClass().getSimpleName(), peer, message.getTradeId(), message.getUid());

super.onTradeMessage(message, peer);

if (message instanceof DelayedPayoutTxSignatureResponse) {
handle((DelayedPayoutTxSignatureResponse) message, peer);
} else if (message instanceof ShareBuyerPaymentAccountMessage) {
Expand Down

0 comments on commit 72b55f4

Please sign in to comment.