Skip to content

Commit 2e04749

Browse files
committed
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.
1 parent 905adb8 commit 2e04749

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

staticaddr/withdraw/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ func (m *Manager) handleWithdrawal(ctx context.Context,
666666

667667
addrParams, err := m.cfg.AddressManager.GetStaticAddressParameters(ctx)
668668
if err != nil {
669-
log.Errorf("error retrieving address params %w", err)
669+
log.Errorf("error retrieving address params: %v", err)
670670

671671
return fmt.Errorf("withdrawal failed")
672672
}

0 commit comments

Comments
 (0)