debug: add logging for watchlist title values
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
@@ -48,6 +49,8 @@ func (h *WatchlistHandler) HandleUpdateWatchlist(w http.ResponseWriter, r *http.
|
|||||||
animeImage := r.FormValue("anime_image")
|
animeImage := r.FormValue("anime_image")
|
||||||
status := r.FormValue("status")
|
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)
|
animeID, err := strconv.ParseInt(animeIDStr, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, "invalid anime ID", http.StatusBadRequest)
|
http.Error(w, "invalid anime ID", http.StatusBadRequest)
|
||||||
|
|||||||
Reference in New Issue
Block a user