mirror of
https://github.com/minio/minio.git
synced 2025-01-26 22:23:15 -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]
|
m, ok := printOnce[endpoint]
|
||||||
if !ok {
|
if !ok {
|
||||||
m = make(map[string]int)
|
m = make(map[string]int)
|
||||||
m[err.Error()]++
|
|
||||||
printOnce[endpoint] = m
|
printOnce[endpoint] = m
|
||||||
if once {
|
if once {
|
||||||
|
m[err.Error()]++
|
||||||
logger.LogAlwaysIf(ctx, err)
|
logger.LogAlwaysIf(ctx, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user