Skip to content

Commit c0b5567

Browse files
authored
Make Gitea 1.22 could be compiled with Go 1.24 (#33643)
In case some users are still using Gitea 1.22
1 parent 2d7a0e3 commit c0b5567

File tree

3 files changed

+1
-56
lines changed

3 files changed

+1
-56
lines changed

modules/log/groutinelabel.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

modules/log/groutinelabel_test.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

modules/log/logger_impl.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,7 @@ func (l *LoggerImpl) Log(skip int, level Level, format string, logArgs ...any) {
200200
event.Stacktrace = Stack(skip + 1)
201201
}
202202

203-
labels := getGoroutineLabels()
204-
if labels != nil {
205-
event.GoroutinePid = labels["pid"]
206-
}
203+
event.GoroutinePid = "no-gopid"
207204

208205
// get a simple text message without color
209206
msgArgs := make([]any, len(logArgs))

0 commit comments

Comments
 (0)