From 4e4390416b91535d42aba04c16d5362af159e7d5 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Tue, 13 May 2025 11:48:52 -0300 Subject: [PATCH] staticaddr: fix logs, use %v not %w in logs --- staticaddr/deposit/fsm.go | 2 +- staticaddr/loopin/actions.go | 4 ++-- staticaddr/withdraw/manager.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/staticaddr/deposit/fsm.go b/staticaddr/deposit/fsm.go index fd41c66d..39c14398 100644 --- a/staticaddr/deposit/fsm.go +++ b/staticaddr/deposit/fsm.go @@ -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) } }() } diff --git a/staticaddr/loopin/actions.go b/staticaddr/loopin/actions.go index 4a700f65..add35b4a 100644 --- a/staticaddr/loopin/actions.go +++ b/staticaddr/loopin/actions.go @@ -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 diff --git a/staticaddr/withdraw/manager.go b/staticaddr/withdraw/manager.go index eb9b84fc..39ee8e4b 100644 --- a/staticaddr/withdraw/manager.go +++ b/staticaddr/withdraw/manager.go @@ -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") }