From 17e97201fdfbe892f9299dcb1333514d1643a06b Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Sat, 2 Dec 2023 17:23:08 +0100 Subject: [PATCH] fix(config): log level change causes panic (#1296) --- internal/config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 9485c1b..476fc64 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -171,7 +171,9 @@ type AppConfig struct { } func New(configPath string, version string) *AppConfig { - c := &AppConfig{} + c := &AppConfig{ + m: new(sync.Mutex), + } c.defaults() c.Config.Version = version c.Config.ConfigPath = configPath