From b70294a20ccdb11cb2b93dd3fe4cd8e404922116 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Mon, 6 Apr 2026 20:07:00 +0200 Subject: [PATCH] debug: add logging for watchlist title values --- internal/handlers/watchlist.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/handlers/watchlist.go b/internal/handlers/watchlist.go index 9878093..61ca01f 100644 --- a/internal/handlers/watchlist.go +++ b/internal/handlers/watchlist.go @@ -4,6 +4,7 @@ import ( "database/sql" "encoding/json" "fmt" + "log" "net/http" "strconv" "time" @@ -48,6 +49,8 @@ func (h *WatchlistHandler) HandleUpdateWatchlist(w http.ResponseWriter, r *http. animeImage := r.FormValue("anime_image") status := r.FormValue("status") + log.Printf("watchlist add: id=%s, title=%s, title_en=%s, title_jp=%s", animeIDStr, animeTitle, animeTitleEnglish, animeTitleJapanese) + animeID, err := strconv.ParseInt(animeIDStr, 10, 64) if err != nil { http.Error(w, "invalid anime ID", http.StatusBadRequest)