Gorm silent, except in debug mode

This commit is contained in:
Pablu23
2024-05-30 23:58:18 +02:00
parent 766da5aeb2
commit e5e7c4eb54
5 changed files with 36 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ func main() {
filePath = getDbPath()
}
db := database.NewDatabase(filePath, true)
db := database.NewDatabase(filePath, true, *debugFlag)
err := db.Open()
if err != nil {
log.Fatal().Err(err).Str("Path", filePath).Msg("Could not open Database")