]> source.dussan.org Git - gitea.git/commit
Fix race in log (#16490) (#16505)
authorzeripath <art27@cantab.net>
Wed, 21 Jul 2021 12:19:36 +0000 (13:19 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Jul 2021 12:19:36 +0000 (20:19 +0800)
commitcf9aeca5081d92b5d21594e41725aaf0f82534c6
tree87f4a570978b201a0f7f143c61eb07b5f7774933
parent09a4364b2197520c3c6bb0fbcac26eed77c3af2f
Fix race in log (#16490) (#16505)

Backport #16490

A race has been detected in #1441 relating to getting log levels.

This PR protects the GetLevel and GetStacktraceLevel calls with a RW mutex.

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/log/event.go
modules/queue/queue_disk_channel_test.go