Skip to content

Commit

Permalink
Don't use fatal log for .env not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
woldham-mgs committed Aug 5, 2024
1 parent 033d878 commit 2abcd77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"log"
"os"
"strconv"
"strings"
Expand All @@ -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")
Expand Down

0 comments on commit 2abcd77

Please sign in to comment.