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>
This commit is contained in:
parent
09a4364b21
commit
cf9aeca508
2 changed files with 30 additions and 27 deletions
|
@ -15,7 +15,6 @@ import (
|
|||
func TestPersistableChannelQueue(t *testing.T) {
|
||||
handleChan := make(chan *testData)
|
||||
handle := func(data ...Data) {
|
||||
assert.True(t, len(data) == 2)
|
||||
for _, datum := range data {
|
||||
testDatum := datum.(*testData)
|
||||
handleChan <- testDatum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue