Skip to content

Commit

Permalink
update FSC to 28bbdc3ed225ad822b5c9a4954b802d3412ba7b8
Browse files Browse the repository at this point in the history
reduce info to debug where needed

Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Nov 29, 2024
1 parent dacbded commit 55f5f91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/gin-gonic/gin v1.10.0
github.com/gobuffalo/packr/v2 v2.7.1
github.com/hashicorp/go-uuid v1.0.3
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241114072958-8bdbea854812
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241128141925-28bbdc3ed225
github.com/hyperledger-labs/orion-sdk-go v0.2.10
github.com/hyperledger-labs/orion-server v0.2.10
github.com/hyperledger/fabric v1.4.0-rc1.0.20230405174026-695dd57e01c2
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,8 @@ github.com/hidal-go/hidalgo v0.0.0-20201109092204-05749a6d73df/go.mod h1:bPkrxDl
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241111074600-334cc6d09cd6 h1:muVqNcNGwDkPs6L5d/KZOSy5Y/YIwWRHCi4Ox3AbSC4=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241111074600-334cc6d09cd6/go.mod h1:vZLAiVznnEdHyx1OV5nIqf34apnfdhonwJL+qEYniIQ=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241114072958-8bdbea854812 h1:1GGnfSHFRKfnCZtho6Ia8ZneaGsI5abKDqXsdL8hVSo=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241114072958-8bdbea854812/go.mod h1:vZLAiVznnEdHyx1OV5nIqf34apnfdhonwJL+qEYniIQ=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241128141925-28bbdc3ed225 h1:wVSR9i5l77d2AFx44Cl/Ox5nzPx/9YUvW24W6Xx2Rvg=
github.com/hyperledger-labs/fabric-smart-client v0.3.1-0.20241128141925-28bbdc3ed225/go.mod h1:vZLAiVznnEdHyx1OV5nIqf34apnfdhonwJL+qEYniIQ=
github.com/hyperledger-labs/orion-sdk-go v0.2.10 h1:lFgWgxyvngIhWnIqymYGBmtmq9D6uC5d0uLG9cbyh5s=
github.com/hyperledger-labs/orion-sdk-go v0.2.10/go.mod h1:iN2xZB964AqwVJwL+EnwPOs8z1EkMEbbIg/qYeC7gDY=
github.com/hyperledger-labs/orion-server v0.2.10 h1:G4zbQEL5Egk0Oj+TwHCZWdTOLDBHOjaAEvYOT4G7ozw=
Expand Down
2 changes: 1 addition & 1 deletion token/services/db/sql/common/test_cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type dbEvent struct {
func collectDBEvents(db driver.TokenNotifier) (*[]dbEvent, error) {
ch := make(chan dbEvent)
err := db.Subscribe(func(operation driver2.Operation, m map[driver2.ColumnKey]string) {
logger.Infof("Received event: [%v]: %v", operation, m)
logger.Debugf("Received event: [%v]: %v", operation, m)
ch <- dbEvent{op: operation, vals: m}
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion token/services/db/sql/common/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ func (t *TokenTransaction) Delete(ctx context.Context, txID string, index uint64
// We don't delete audit tokens, and we keep the 'ownership' relation.
now := time.Now().UTC()
query := fmt.Sprintf("UPDATE %s SET is_deleted = true, spent_by = $1, spent_at = $2 WHERE tx_id = $3 AND idx = $4;", t.db.table.Tokens)
logger.Infof(query, deletedBy, now, txID, index)
logger.Debugf(query, deletedBy, now, txID, index)
span.AddEvent("query", tracing.WithAttributes(tracing.String(QueryLabel, query)))
if _, err := t.tx.Exec(query, deletedBy, now, txID, index); err != nil {
span.RecordError(err)
Expand Down

0 comments on commit 55f5f91

Please sign in to comment.