mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
33891ae6ae
commit
d39e247a74
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue