diff --git a/config/config.go b/config/config.go index 223640d..67c6b43 100644 --- a/config/config.go +++ b/config/config.go @@ -3,7 +3,6 @@ package config import ( "os" - "github.com/gofiber/fiber/v2/log" "github.com/joho/godotenv" ) @@ -16,7 +15,7 @@ func init() { func GetEnv(name string, defVal string) string { env := os.Getenv(name) if env == "" { - log.Panicf("Missing %s env variable", name) + return defVal } return env