mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
fix: in printEndpointError count error once per init() (#17193)
This commit is contained in:
parent
883c98e26f
commit
203755793c
@ -44,9 +44,9 @@ var printEndpointError = func() func(Endpoint, error, bool) {
|
||||
m, ok := printOnce[endpoint]
|
||||
if !ok {
|
||||
m = make(map[string]int)
|
||||
m[err.Error()]++
|
||||
printOnce[endpoint] = m
|
||||
if once {
|
||||
m[err.Error()]++
|
||||
logger.LogAlwaysIf(ctx, err)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user