mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Use better host names for metric errors (#18188)
Typically hosts would end up like this:
```
"hosts": [
":9000",
":9000",
":9000",
...
```
Also add host name to errors.
This commit is contained in:
@@ -777,7 +777,7 @@ func (sys *NotificationSys) GetMetrics(ctx context.Context, t madmin.MetricType,
|
||||
|
||||
for index, err := range g.Wait() {
|
||||
if err != nil {
|
||||
reply[index].Errors = []string{err.Error()}
|
||||
reply[index].Errors = []string{fmt.Sprintf("%s: %s (rpc)", sys.peerClients[index].String(), err.Error())}
|
||||
}
|
||||
}
|
||||
return reply
|
||||
|
||||
Reference in New Issue
Block a user