diff --git a/go.mod b/go.mod index 801e82ebf..39343219c 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 1cf529935..ea7e920e7 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/token/services/db/sql/common/test_cases.go b/token/services/db/sql/common/test_cases.go index 1f5e4598e..0c5e4edc7 100644 --- a/token/services/db/sql/common/test_cases.go +++ b/token/services/db/sql/common/test_cases.go @@ -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 { diff --git a/token/services/db/sql/common/tokens.go b/token/services/db/sql/common/tokens.go index 29a22e54e..49b0ce6b9 100644 --- a/token/services/db/sql/common/tokens.go +++ b/token/services/db/sql/common/tokens.go @@ -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)