Don't use fatal log for .env not existing

This commit is contained in:
William Oldham
2024-08-05 19:24:45 +01:00
parent 033d8786b0
commit 2abcd77bf1

View File

@@ -2,7 +2,6 @@ package main
import (
"fmt"
"log"
"os"
"strconv"
"strings"
@@ -23,7 +22,7 @@ func init() {
err = godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
globals.Logger.Warning("Error loading .env file")
}
s3Endpoint := os.Getenv("PN_SMM_CONFIG_S3_ENDPOINT")