chore: better request logging, remove unused env

This commit is contained in:
Gabe Farrell 2025-06-12 17:54:35 -04:00
parent 0030628db1
commit a14fc55d55
6 changed files with 30 additions and 23 deletions

View file

@ -69,6 +69,7 @@ func ReplaceImageHandler(store db.DB) http.HandlerFunc {
l.Debug().Msg("Image identified as remote file")
err = catalog.ValidateImageURL(fileUrl)
if err != nil {
l.Debug().AnErr("error", err).Msg("Invalid image")
utils.WriteError(w, "url is invalid or not an image file", http.StatusBadRequest)
return
}