Make Gitea 1.22 could be compiled with Go 1.24 (#33643)

In case some users are still using Gitea 1.22
This commit is contained in:
wxiaoguang
2025-02-19 00:11:43 -08:00
committed by GitHub
parent 2d7a0e3a8b
commit c0b55670dc
3 changed files with 1 additions and 56 deletions
+1 -4
View File
@@ -200,10 +200,7 @@ 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"]
}
event.GoroutinePid = "no-gopid"
// get a simple text message without color
msgArgs := make([]any, len(logArgs))