Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <alexandros.filios@ibm.com>
  • Loading branch information
alexandrosfilios committed Sep 4, 2024
1 parent 8ce3e01 commit d61bd8a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions integration/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ var (

AllTestTypes = []*InfrastructureType{
WebSocketNoReplication,
LibP2PNoReplication,
WebSocketWithReplication,
//LibP2PNoReplication,
//WebSocketWithReplication,
}
)

Expand Down
6 changes: 3 additions & 3 deletions integration/token/fungible/dlog/dlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ func newTestSuite(commType fsc.P2PCommunicationType, mask int, factor int, token
Monitoring: false,
ReplicationOpts: opts,
FSCBasedEndorsement: mask&WithEndorsers > 0,
//FSCLogSpec: "token-sdk=debug:fabric-sdk=debug:info",
OnlyUnity: true,
TokenSelector: tokenSelector,
FSCLogSpec: "debug",
OnlyUnity: true,
TokenSelector: tokenSelector,
},
))
return ts, selector
Expand Down
2 changes: 1 addition & 1 deletion token/services/auditdb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (d *DB) NewHoldingsFilter() *HoldingsFilter {

// SetStatus sets the status of the audit records with the passed transaction id to the passed status
func (d *DB) SetStatus(ctx context.Context, txID string, status driver.TxStatus, message string) error {
logger.Debugf("set status [%s][%s]...", txID, status)
logger.Infof("set status [%s][%s]...", txID, status)
if err := d.db.SetStatus(ctx, txID, status, message); err != nil {
return errors.Wrapf(err, "failed setting status [%s][%s]", txID, driver.TxStatusMessage[status])
}
Expand Down
2 changes: 1 addition & 1 deletion token/services/network/common/finality.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (t *FinalityListener) OnStatus(ctx context.Context, txID string, status int
func (t *FinalityListener) runOnStatus(ctx context.Context, txID string, status int, message string, tokenRequestHash []byte) error {
newCtx, span := t.tracer.Start(ctx, "on_status")
defer span.End()
t.logger.Debugf("tx status changed for tx [%s]: [%s]", txID, status)
t.logger.Infof("tx status changed for tx [%s]: [%s]", txID, status)
var txStatus driver.TxStatus
switch status {
case network.Valid:
Expand Down
4 changes: 2 additions & 2 deletions token/services/ttx/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ func (a *DB) Append(tx *Transaction) error {
if err != nil {
return errors.WithMessagef(err, "failed getting network instance for [%s:%s]", tx.Network(), tx.Channel())
}
logger.Debugf("register tx status listener for tx [%s:%s] at network", tx.ID(), tx.Network())
logger.Infof("register tx status listener for tx [%s:%s] at network", tx.ID(), tx.Network())

if err := net.AddFinalityListener(tx.Namespace(), tx.ID(), common.NewFinalityListener(logger, a.tmsProvider, a.tmsID, a.ttxDB, a.tokenDB, a.finalityTracer)); err != nil {
return errors.WithMessagef(err, "failed listening to network [%s:%s]", tx.Network(), tx.Channel())
}
logger.Debugf("append done for request %s", tx.ID())
logger.Infof("append done for request %s", tx.ID())
return nil
}

Expand Down

0 comments on commit d61bd8a

Please sign in to comment.