From 8cc31a918b508fe38aa0c8cd9ac78041b3e3219f Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Mon, 23 May 2022 14:17:39 +0000 Subject: [PATCH] Properly handle config parsing errors because logging is not setup yet --- config.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config.go b/config.go index df300bf..0c8bff2 100644 --- a/config.go +++ b/config.go @@ -201,9 +201,7 @@ func ConfigLoad() { ) if err != nil { - //log.WithField("config_error", err). - // Fatal("Config parsing error") - os.Exit(0) + os.Exit(1) } // Set up logging as soon as possible