mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 21:48:18 -08:00
chore: better request logging, remove unused env
This commit is contained in:
parent
0030628db1
commit
a14fc55d55
6 changed files with 30 additions and 23 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue