mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
log 404s and other log improvements.
This commit is contained in:
@@ -53,7 +53,8 @@ func renderImage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
data, err := grabData(ctx, code)
|
||||
if err != nil {
|
||||
http.Error(w, "error fetching event: "+err.Error(), 404)
|
||||
http.Error(w, "error fetching event: "+err.Error(), http.StatusNotFound)
|
||||
log.Warn().Err(err).Str("code", code).Msg("event not found on render_image")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user