From 3ec30115ec0294fed3e8de20d1af1380c79e9676 Mon Sep 17 00:00:00 2001 From: Joe Constant Date: Mon, 25 Dec 2023 01:11:35 -0700 Subject: [PATCH] Change env lookup to only be a warning --- cmd/federation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/federation.go b/cmd/federation.go index d9fba4b..46b924c 100644 --- a/cmd/federation.go +++ b/cmd/federation.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "sublinks/sublinks-federation/internal/db" "sublinks/sublinks-federation/internal/http" @@ -13,7 +14,7 @@ func main() { // Load connection string from .env file err := godotenv.Load() if err != nil { - log.Fatal("failed to load env", err) + log.Warn(fmt.Sprintf("failed to load env, %v", err)) } conn, err := db.Connect() if err != nil {