Skip to content

Commit

Permalink
fix: remove fatal log in database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaiNueleanu committed Jun 1, 2024
1 parent 33bd012 commit 4413ecc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api-go/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func IsTimescaleEnabled() bool {

func NewPostgresRepo() *PostgresRepo {
dbUrl := os.Getenv("POSTGRES_URL")
if dbUrl == "" {
log.Fatal("POSTGRES_URL is not set")
}

if strings.HasPrefix(dbUrl, "postgresql://") {
db, err := sqlx.Connect("postgres", dbUrl)
Expand Down

0 comments on commit 4413ecc

Please sign in to comment.