Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion staticaddr/deposit/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()
}
Expand Down
4 changes: 2 additions & 2 deletions staticaddr/loopin/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion staticaddr/withdraw/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down