moar logs for contract

This commit is contained in:
djmil 2023-11-28 23:28:59 +01:00
parent c3751dbc81
commit 609341631d

View File

@ -19,6 +19,8 @@ public class GameProposalContract implements net.corda.v5.ledger.utxo.Contract {
requireThat(trx.getCommands().size() == 1, GameCommand.REQUIRE_SINGLE_COMMAND); requireThat(trx.getCommands().size() == 1, GameCommand.REQUIRE_SINGLE_COMMAND);
final GameCommand command = getSingleCommand(trx, GameCommand.class); final GameCommand command = getSingleCommand(trx, GameCommand.class);
log.info("GameProposalContract.verify() " +command);
switch (command.getAction()) { switch (command.getAction()) {
case GAME_PROPOSAL_CREATE: case GAME_PROPOSAL_CREATE:
command.validateGameProposalCreate(trx); command.validateGameProposalCreate(trx);
@ -39,6 +41,8 @@ public class GameProposalContract implements net.corda.v5.ledger.utxo.Contract {
default: default:
throw new GameCommand.ActionException(); throw new GameCommand.ActionException();
} }
log.info("GameProposalContract.verify() " +command + " [OK]");
} }
} }