chore: add user id to watchlist log for better debugging

This commit is contained in:
2026-04-08 15:44:01 +02:00
parent 91e10560a6
commit 18065bf4cc

View File

@@ -47,7 +47,7 @@ func (h *Handler) HandleUpdateWatchlist(w http.ResponseWriter, r *http.Request)
airingStr := r.FormValue("airing")
airing := airingStr == "true"
log.Printf("watchlist add: id=%s, title=%s", animeIDStr, animeTitle)
log.Printf("watchlist add: user_id=%s, anime_id=%s, title=%s", user.ID, animeIDStr, animeTitle)
animeID, err := strconv.ParseInt(animeIDStr, 10, 64)
if err != nil {