Skip to content

Commit

Permalink
fix bug with .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jokil123 committed Jan 26, 2024
1 parent 801128f commit 5eb5534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion EsefexApi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ import (
func main() {
log.Printf("Starting Esefex API with PID: %d", os.Getpid())

Must(godotenv.Load())
err := godotenv.Load()
if err != nil {
log.Println("Error loading .env file, assuming all variables are set in the environment")
}

log.SetFlags(log.LstdFlags | log.Lshortfile)

Expand Down

0 comments on commit 5eb5534

Please sign in to comment.