From 76f361f5bf00abf80a794ebbcf778efe2254ec42 Mon Sep 17 00:00:00 2001 From: Tim Penhey Date: Fri, 5 Aug 2016 10:03:26 +1200 Subject: [PATCH] Missing mutex in public method. --- context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/context.go b/context.go index ad2a211..f5739d9 100644 --- a/context.go +++ b/context.go @@ -100,6 +100,8 @@ func (c *Context) CompleteConfig() Config { // ApplyConfig configures the logging modules according to the provided config. func (c *Context) ApplyConfig(config Config) { + c.modulesMutex.Lock() + defer c.modulesMutex.Unlock() for name, level := range config { module := c.getLoggerModule(name) module.setLevel(level)