aboutsummaryrefslogtreecommitdiffstats
path: root/services/cron/tasks_basic.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-03-26 20:04:36 +0000
committerGitHub <noreply@github.com>2022-03-26 20:04:36 +0000
commit70628bd870f54bef2c54c6c67c4f7e5e0481980b (patch)
tree3ab5cb854592b758d35236e8ee5aa6bedcafb555 /services/cron/tasks_basic.go
parentc1198284bc4fc54bc5e7cb56cd387b5b955e63f6 (diff)
downloadgitea-70628bd870f54bef2c54c6c67c4f7e5e0481980b.tar.gz
gitea-70628bd870f54bef2c54c6c67c4f7e5e0481980b.zip
Add auto logging of goroutine pid label (#19212)
* Add auto logging of goroutine pid label This PR uses unsafe to export the hidden runtime_getProfLabel function from the runtime package and then casts the result to a map[string]string. We can then interrogate this map to get the pid label from the goroutine allowing us to log it with any logging request. Reference #19202 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'services/cron/tasks_basic.go')
0 files changed, 0 insertions, 0 deletions