Skip to content

Commit

Permalink
Change env lookup to only be a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyguru committed Dec 25, 2023
1 parent 151e011 commit 3ec3011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/federation.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"os"
"sublinks/sublinks-federation/internal/db"
"sublinks/sublinks-federation/internal/http"
Expand All @@ -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 {
Expand Down

0 comments on commit 3ec3011

Please sign in to comment.