Skip to content

Commit

Permalink
better error logs in db
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Aug 30, 2023
1 parent f099149 commit e979cba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ func InitDB() {

err := db.Connect()
if err != nil {
log.Fatal(err)
log.Fatal("[DB] Failed to connect to database: ", err)
}
err = db.SetupIndexes()
if err != nil {
log.Fatal(err)
log.Fatal("[DB] Failed to setup indexes: ", err)
}
err = db.SetupLocker()
if err != nil {
log.Fatal(err)
log.Fatal("[DB] Failed to setup locker: ", err)
}
log.Info("[DB] Database initialized")

Expand Down

0 comments on commit e979cba

Please sign in to comment.