remove unexpected logging from peer calls (#17888)

also make sure RequestID is set for system logs
This commit is contained in:
Harshavardhana
2023-08-21 14:25:24 -07:00
committed by GitHub
parent 328cb0a076
commit 3a0125fa1f
3 changed files with 4 additions and 10 deletions

View File

@@ -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()