mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Add 'disk' tag to log output to enhance 'disk not found' errors (#6460)
This commit is contained in:
committed by
kannappanr
parent
14fa0097b0
commit
a63bc9254d
@@ -29,7 +29,7 @@ var printEndpointError = func() func(Endpoint, error) {
|
||||
printOnce := make(map[Endpoint]map[string]bool)
|
||||
|
||||
return func(endpoint Endpoint, err error) {
|
||||
reqInfo := (&logger.ReqInfo{}).AppendTags("endpoint", endpoint.Host)
|
||||
reqInfo := (&logger.ReqInfo{}).AppendTags("endpoint", endpoint.String())
|
||||
ctx := logger.SetReqInfo(context.Background(), reqInfo)
|
||||
m, ok := printOnce[endpoint]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user