Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 3ec0125

Browse files
committed
Add mutex for config changes
1 parent 973c7e2 commit 3ec0125

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

logger/logger.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ SetLoggingLevel dynamically sets the logging level at runtime. See https://githu
9292
for possible logging levels.
9393
*/
9494
func SetLoggingLevel(level string) {
95+
mutex.Lock()
96+
defer mutex.Unlock()
9597
zapLevel, err := zapcore.ParseLevel(level)
9698
if err != nil {
9799
panic(err)

0 commit comments

Comments
 (0)