staticaddr: fix logs, use %v not %w in logs

This commit is contained in:
Boris Nagaev 2025-05-13 11:48:52 -03:00
parent 125d83f760
commit 4e4390416b
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -232,7 +232,7 @@ func (f *FSM) handleBlockNotification(ctx context.Context,
err := f.SendEvent(ctx, OnExpiry, nil)
if err != nil {
log.Debugf("error sending OnExpiry "+
"event: %w", err)
"event: %v", err)
}
}()
}

View file

@ -149,7 +149,7 @@ func (f *FSM) InitHtlcAction(ctx context.Context,
},
)
if err != nil {
log.Warnf("unable to push htlc tx sigs to server: %w",
log.Warnf("unable to push htlc tx sigs to server: %v",
err)
}
}
@ -628,7 +628,7 @@ func (f *FSM) MonitorInvoiceAndHtlcTxAction(ctx context.Context,
if err != nil {
log.Errorf("unable to transition "+
"deposits to the htlc timeout "+
"sweeping state: %w", err)
"sweeping state: %v", err)
}
return OnSweepHtlcTimeout

View file

@ -888,7 +888,7 @@ func (m *Manager) createWithdrawalTx(ctx context.Context,
// Send change back to the same static address.
staticAddress, err := m.cfg.AddressManager.GetStaticAddress(ctx)
if err != nil {
log.Errorf("error retrieving taproot address %w", err)
log.Errorf("error retrieving taproot address %v", err)
return nil, 0, 0, fmt.Errorf("withdrawal failed")
}