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)