Skip to content

Commit 9a25d71

Browse files
committed
sweep: improve loggings
1 parent 533aeb8 commit 9a25d71

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

sweep/fee_bumper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ func (t *TxPublisher) createAndPublishTx(
13711371
return fn.Some(*result)
13721372
}
13731373

1374-
log.Infof("Replaced tx=%v with new tx=%v", oldTx.TxHash(),
1374+
log.Debugf("Replaced tx=%v with new tx=%v", oldTx.TxHash(),
13751375
sweepCtx.tx.TxHash())
13761376

13771377
// Otherwise, it's a successful RBF, set the event and return.

sweep/sweeper.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,9 @@ func (s *UtxoSweeper) sweep(set InputSet) error {
824824
return fmt.Errorf("gen sweep script: %w", err)
825825
}
826826
s.currentOutputScript = fn.Some(addr)
827+
828+
log.Debugf("Created sweep DeliveryAddress %x",
829+
addr.DeliveryAddress)
827830
}
828831

829832
sweepAddr, err := s.currentOutputScript.UnwrapOrErr(
@@ -1725,8 +1728,8 @@ func (s *UtxoSweeper) handleBumpEventTxReplaced(resp *bumpResp) error {
17251728
s.cfg.Wallet.CancelRebroadcast(oldTxid)
17261729

17271730
log.Infof("RBFed tx=%v(fee=%v sats, feerate=%v sats/kw) with new "+
1728-
"tx=%v(fee=%v, "+"feerate=%v)", record.Txid, record.Fee,
1729-
record.FeeRate, tr.Txid, tr.Fee, tr.FeeRate)
1731+
"tx=%v(fee=%v sats, feerate=%v sats/kw)", record.Txid,
1732+
record.Fee, record.FeeRate, tr.Txid, tr.Fee, tr.FeeRate)
17301733

17311734
// The old sweeping tx has been replaced by a new one, we will update
17321735
// the tx record in the sweeper db.

0 commit comments

Comments
 (0)