node/multiClient: Add node address to errors #1428
1 changed files with 5 additions and 4 deletions
9
pkg/network/cache/multi.go
vendored
9
pkg/network/cache/multi.go
vendored
|
@ -169,15 +169,16 @@ func (x *multiClient) iterateClients(ctx context.Context, f func(clientcore.Clie
|
||||||
var siErr *objectSDK.SplitInfoError
|
var siErr *objectSDK.SplitInfoError
|
||||||
var eiErr *objectSDK.ECInfoError
|
var eiErr *objectSDK.ECInfoError
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
err = fmt.Errorf("client connection error at %v: %w", addr, err)
|
||||||
|
|||||||
|
x.ReportError(err)
|
||||||
|
}
|
||||||
|
|
||||||
success := err == nil || errors.Is(err, context.Canceled) || errors.As(err, &siErr) || errors.As(err, &eiErr)
|
success := err == nil || errors.Is(err, context.Canceled) || errors.As(err, &siErr) || errors.As(err, &eiErr)
|
||||||
if success || firstErr == nil || errors.Is(firstErr, errRecentlyFailed) {
|
if success || firstErr == nil || errors.Is(firstErr, errRecentlyFailed) {
|
||||||
firstErr = err
|
firstErr = err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
x.ReportError(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return success
|
return success
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue
What does
client error
mean in logs?how about
connect to %v: %w
I am sure the
error
will already be mentioned multiple times in the full message.