From 1f4981b0a9d9d2c1fd4c5695b1e01ce705d13bf1 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 12 Dec 2024 18:18:41 +0100 Subject: [PATCH] fix(config): Don't fail on missing env --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3487595..9979610 100644 --- a/main.go +++ b/main.go @@ -45,7 +45,7 @@ func loadEnv() error { viper.AutomaticEnv() err := viper.ReadInConfig() if err != nil { - return err + log.Println("No .env file found") } // Unmarshal the config from file and env into the config struct