From d39e247a74c1f4c30291723bb0363aaf24d3e90c Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Sat, 28 Feb 2026 10:29:07 +0100 Subject: [PATCH] withdraw: use %v instead of %w in log.Errorf The %w formatting verb is only meaningful for fmt.Errorf where it enables error wrapping. In log.Errorf it prints as %%!w(error=...), producing garbled log output. Use %v and add the missing colon separator. --- staticaddr/withdraw/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticaddr/withdraw/manager.go b/staticaddr/withdraw/manager.go index a315b345..ecd20907 100644 --- a/staticaddr/withdraw/manager.go +++ b/staticaddr/withdraw/manager.go @@ -666,7 +666,7 @@ func (m *Manager) handleWithdrawal(ctx context.Context, addrParams, err := m.cfg.AddressManager.GetStaticAddressParameters(ctx) if err != nil { - log.Errorf("error retrieving address params %w", err) + log.Errorf("error retrieving address params: %v", err) return fmt.Errorf("withdrawal failed") }