Deprecated gopid in log (#32932)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-12-20 16:20:51 +00:00
1 parent c20642fa99
commit 1e71ad89ce
6 files changed
+27 -88

No files matched your search

-5
View File
@@ -200,11 +200,6 @@ func (l *LoggerImpl) Log(skip int, level Level, format string, logArgs ...any) {
event.Stacktrace = Stack(skip + 1)
}
labels := getGoroutineLabels()
if labels != nil {
event.GoroutinePid = labels["pid"]
}
// get a simple text message without color
msgArgs := make([]any, len(logArgs))
copy(msgArgs, logArgs)