Replace panics with our logging framework

This commit is contained in:
Gabe Kangas
2021-10-25 00:14:42 -07:00
parent cd15661f08
commit 3f4176d8d6
7 changed files with 14 additions and 11 deletions

View File

@@ -122,7 +122,7 @@ func migrateDatabase(db *sql.DB, from, to int) error {
log.Tracef("Migration step from %d to %d\n", v, v+1)
migrateToSchema1(db)
default:
panic("missing database migration step")
log.Fatalln("missing database migration step")
}
}