feat: add log

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-12 11:29:01 +08:00
parent dfa095eecc
commit 1f47250456
7 changed files with 20 additions and 26 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"strings"
"hack-browser-data/internal/item"
"hack-browser-data/internal/log"
"hack-browser-data/internal/utils"
_ "github.com/mattn/go-sqlite3"
@@ -86,7 +87,7 @@ func (f *FirefoxDownload) Parse(masterKey []byte) error {
placeID, dateAdded int64
)
if err = downloadRows.Scan(&placeID, &content, &url, &dateAdded); err != nil {
fmt.Println(err)
log.Warn(err)
}
contentList := strings.Split(content, ",{")
if len(contentList) > 1 {