Skip to content

Commit

Permalink
noto: add logs around state query
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Richardson <[email protected]>
  • Loading branch information
awrichar committed Sep 17, 2024
1 parent 65141b3 commit 6df454a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions domains/noto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ task test(type: Exec) {
args 'test'
args './internal/...'
args './pkg/...'
args '-v'
args '-cover'
args '-covermode=atomic'
args '-timeout=30s'
Expand Down
3 changes: 3 additions & 0 deletions domains/noto/internal/noto/states.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/hyperledger/firefly-signer/pkg/eip712"
"github.com/hyperledger/firefly-signer/pkg/ethtypes"
"github.com/kaleido-io/paladin/domains/noto/pkg/types"
"github.com/kaleido-io/paladin/toolkit/pkg/log"
pb "github.com/kaleido-io/paladin/toolkit/pkg/prototk"
"github.com/kaleido-io/paladin/toolkit/pkg/query"
"github.com/kaleido-io/paladin/toolkit/pkg/tktypes"
Expand Down Expand Up @@ -97,6 +98,7 @@ func (n *Noto) prepareInputs(ctx context.Context, owner ethtypes.Address0xHex, a
queryBuilder.GreaterThan(".created", lastStateTimestamp)
}

log.L(ctx).Debugf("State query: %s", queryBuilder.Query().String())
states, err := n.findAvailableStates(ctx, queryBuilder.Query().String())

if err != nil {
Expand All @@ -121,6 +123,7 @@ func (n *Noto) prepareInputs(ctx context.Context, owner ethtypes.Address0xHex, a
return coins, stateRefs, total, nil
}
}
log.L(ctx).Debugf("Last state timestamp: %d", lastStateTimestamp)
}
}

Expand Down

0 comments on commit 6df454a

Please sign in to comment.