Deprecated gopid in log (#32932)

This commit is contained in:
wxiaoguang
2024-12-21 00:20:51 +08:00
committed by GitHub
parent c20642fa99
commit 1e71ad89ce
6 changed files with 27 additions and 88 deletions

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)