Skip to content

Commit d0e9b79

Browse files
committed
supplycommit: reduce log level of tx/commit output to trace/debug
Lower the log level of transaction and commit-related output from info to trace/debug to reduce noise and improve log file readability. This level of detail is no longer needed at the info level.
1 parent fb3db91 commit d0e9b79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

universe/supplycommit/transitions.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func newRootCommitment(ctx context.Context,
452452
) (*RootCommitment, *psbt.Packet, error) {
453453

454454
logger.WhenSome(func(l btclog.Logger) {
455-
l.Infof("Creating new root commitment, spending %v "+
455+
l.Debugf("Creating new root commitment, spending %v "+
456456
"pre-commits", len(unspentPreCommits))
457457
})
458458

@@ -495,7 +495,7 @@ func newRootCommitment(ctx context.Context,
495495
var spentCommitOp fn.Option[wire.OutPoint]
496496
oldCommitment.WhenSome(func(r RootCommitment) {
497497
logger.WhenSome(func(l btclog.Logger) {
498-
l.Infof("Re-using prior commitment as outpoint=%v: %v",
498+
l.Tracef("Re-using prior commitment as outpoint=%v: %v",
499499
r.CommitPoint(), limitSpewer.Sdump(r))
500500
})
501501

@@ -603,7 +603,7 @@ func newRootCommitment(ctx context.Context,
603603
}
604604

605605
logger.WhenSome(func(l btclog.Logger) {
606-
l.Infof("Created new root commitment: %v",
606+
l.Tracef("Created new root commitment: %v",
607607
limitSpewer.Sdump(newSupplyCommit))
608608
})
609609

@@ -836,7 +836,7 @@ func (s *CommitTxSignState) ProcessEvent(event Event,
836836
"commitment tx: %w", err)
837837
}
838838

839-
prefixedLog.Infof("Signed supply "+
839+
prefixedLog.Tracef("Signed supply "+
840840
"commitment txn: %v", limitSpewer.Sdump(signedPsbt))
841841

842842
err = psbt.MaybeFinalizeAll(signedPsbt)
@@ -931,7 +931,7 @@ func (c *CommitBroadcastState) ProcessEvent(event Event,
931931
}
932932

933933
commitTxid := c.SupplyTransition.NewCommitment.Txn.TxHash()
934-
prefixedLog.Infof("Broadcasting supply commitment "+
934+
prefixedLog.Tracef("Broadcasting supply commitment "+
935935
"txn (txid=%v): %v", commitTxid,
936936
limitSpewer.Sdump(c.SupplyTransition.NewCommitment.Txn))
937937

@@ -1022,7 +1022,7 @@ func (c *CommitBroadcastState) ProcessEvent(event Event,
10221022
TxIndex: newEvent.TxIndex,
10231023
})
10241024

1025-
prefixedLog.Infof("Supply commitment txn confirmed "+
1025+
prefixedLog.Tracef("Supply commitment txn confirmed "+
10261026
"in block %d (hash=%v): %v",
10271027
newEvent.BlockHeight, newEvent.Block.Header.BlockHash(),
10281028
limitSpewer.Sdump(c.SupplyTransition.NewCommitment.Txn))

0 commit comments

Comments
 (0)