From 609341631d1f3b69f7ce802c983c50d387e86134 Mon Sep 17 00:00:00 2001 From: djmil Date: Tue, 28 Nov 2023 23:28:59 +0100 Subject: [PATCH] moar logs for contract --- .../djmil/cordacheckers/contracts/GameProposalContract.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameProposalContract.java b/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameProposalContract.java index 34c3b9b..0d64da5 100644 --- a/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameProposalContract.java +++ b/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameProposalContract.java @@ -19,6 +19,8 @@ public class GameProposalContract implements net.corda.v5.ledger.utxo.Contract { requireThat(trx.getCommands().size() == 1, GameCommand.REQUIRE_SINGLE_COMMAND); final GameCommand command = getSingleCommand(trx, GameCommand.class); + log.info("GameProposalContract.verify() " +command); + switch (command.getAction()) { case GAME_PROPOSAL_CREATE: command.validateGameProposalCreate(trx); @@ -39,6 +41,8 @@ public class GameProposalContract implements net.corda.v5.ledger.utxo.Contract { default: throw new GameCommand.ActionException(); } + + log.info("GameProposalContract.verify() " +command + " [OK]"); } }