Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2472da9

Browse files
author
xuxinhua
committed
add log
1 parent 2ae2b33 commit 2472da9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/logic/download.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ func (DownloadLogic) AddNewDownload(ctx context.Context, version, selector strin
5656
doc.Find(selector).Each(func(i int, versionSel *goquery.Selection) {
5757
idVal, exists := versionSel.Attr("id")
5858
if !exists {
59+
objLog.Errorln("add new download version not exist:", version)
5960
return
6061
}
6162

6263
if idVal != version {
64+
objLog.Errorln("add new download version not match, expected:", version, "real:", idVal)
6365
return
6466
}
6567

@@ -93,6 +95,7 @@ func (DownloadLogic) AddNewDownload(ctx context.Context, version, selector strin
9395
})
9496

9597
if download.Kind == "" {
98+
objLog.Errorln("add new download Kind is empty:", version)
9699
return
97100
}
98101

0 commit comments

Comments
 (0)