create log class, edit fatal-but-not-really logs

This commit is contained in:
ari melody 2025-02-06 12:32:51 +00:00
parent 8ccf6f242b
commit e80a6753a5
Signed by: ari
GPG key ID: CF99829C92678188
4 changed files with 66 additions and 8 deletions

View file

@ -37,7 +37,7 @@ func ServeCatalog(app *model.AppState) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
releases, err := controller.GetAllReleases(app.DB, true, 0, true)
if err != nil {
fmt.Printf("FATAL: Failed to pull releases for catalog: %s\n", err)
fmt.Printf("WARN: Failed to pull releases for catalog: %s\n", err)
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
return
}