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.
This commit is contained in:
Slyghtning 2026-02-28 10:29:07 +01:00
parent 33891ae6ae
commit d39e247a74
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -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")
}