Skip to content

Commit 890b91c

Browse files
authored
Merge pull request #941 from starius/fix-log-w
staticaddr: fix logs, use %v not %w in logs
2 parents 125d83f + 4e43904 commit 890b91c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

staticaddr/deposit/fsm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (f *FSM) handleBlockNotification(ctx context.Context,
232232
err := f.SendEvent(ctx, OnExpiry, nil)
233233
if err != nil {
234234
log.Debugf("error sending OnExpiry "+
235-
"event: %w", err)
235+
"event: %v", err)
236236
}
237237
}()
238238
}

staticaddr/loopin/actions.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (f *FSM) InitHtlcAction(ctx context.Context,
149149
},
150150
)
151151
if err != nil {
152-
log.Warnf("unable to push htlc tx sigs to server: %w",
152+
log.Warnf("unable to push htlc tx sigs to server: %v",
153153
err)
154154
}
155155
}
@@ -628,7 +628,7 @@ func (f *FSM) MonitorInvoiceAndHtlcTxAction(ctx context.Context,
628628
if err != nil {
629629
log.Errorf("unable to transition "+
630630
"deposits to the htlc timeout "+
631-
"sweeping state: %w", err)
631+
"sweeping state: %v", err)
632632
}
633633

634634
return OnSweepHtlcTimeout

staticaddr/withdraw/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ func (m *Manager) createWithdrawalTx(ctx context.Context,
888888
// Send change back to the same static address.
889889
staticAddress, err := m.cfg.AddressManager.GetStaticAddress(ctx)
890890
if err != nil {
891-
log.Errorf("error retrieving taproot address %w", err)
891+
log.Errorf("error retrieving taproot address %v", err)
892892

893893
return nil, 0, 0, fmt.Errorf("withdrawal failed")
894894
}

0 commit comments

Comments
 (0)