From 2472da9c8afbdca4643e8daea0cea336c46a772a Mon Sep 17 00:00:00 2001 From: xuxinhua Date: Wed, 5 Jun 2024 12:26:38 +0800 Subject: [PATCH] add log --- internal/logic/download.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/logic/download.go b/internal/logic/download.go index 3cddf9ee..21bcc6f3 100644 --- a/internal/logic/download.go +++ b/internal/logic/download.go @@ -56,10 +56,12 @@ func (DownloadLogic) AddNewDownload(ctx context.Context, version, selector strin doc.Find(selector).Each(func(i int, versionSel *goquery.Selection) { idVal, exists := versionSel.Attr("id") if !exists { + objLog.Errorln("add new download version not exist:", version) return } if idVal != version { + objLog.Errorln("add new download version not match, expected:", version, "real:", idVal) return } @@ -93,6 +95,7 @@ func (DownloadLogic) AddNewDownload(ctx context.Context, version, selector strin }) if download.Kind == "" { + objLog.Errorln("add new download Kind is empty:", version) return }