mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
remove unexpected logging from peer calls (#17888)
also make sure RequestID is set for system logs
This commit is contained in:
@@ -268,7 +268,10 @@ func errToEntry(ctx context.Context, err error, errKind ...interface{}) log.Entr
|
||||
req := GetReqInfo(ctx)
|
||||
|
||||
if req == nil {
|
||||
req = &ReqInfo{API: "SYSTEM"}
|
||||
req = &ReqInfo{
|
||||
API: "SYSTEM",
|
||||
RequestID: fmt.Sprintf("%X", time.Now().UTC().UnixNano()),
|
||||
}
|
||||
}
|
||||
req.RLock()
|
||||
defer req.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user