diff --git a/logger/logger.go b/logger/logger.go
index <HASH>..<HASH> 100644
--- a/logger/logger.go
+++ b/logger/logger.go
@@ -41,7 +41,7 @@ func (c *Config) New(defaultOutput io.Writer) (*zap.Logger, error) {
 	}
 	return zap.New(zapcore.NewCore(
 		encoder,
-		zapcore.AddSync(w),
+		zapcore.Lock(zapcore.AddSync(w)),
 		c.Level,
 	)), nil
 }
Lock the writer for the logger to prevent a race condition when used from multiple goroutines