|
@@ -12,7 +12,6 @@ import (
|
|
|
"hongze/hongze_data_crawler/services/alarm_msg"
|
|
|
"hongze/hongze_data_crawler/utils"
|
|
|
"io"
|
|
|
- "log"
|
|
|
"os"
|
|
|
"path/filepath"
|
|
|
"time"
|
|
@@ -169,7 +168,7 @@ func GetSourceChangesVisitorsCovid() (filePathStr string, err error) {
|
|
|
// create chrome instance
|
|
|
ctx, cancel := chromedp.NewContext(
|
|
|
allocCtx,
|
|
|
- chromedp.WithLogf(log.Printf),
|
|
|
+ chromedp.WithLogf(utils.FileLog.Info),
|
|
|
)
|
|
|
defer cancel()
|
|
|
|
|
@@ -229,7 +228,7 @@ func GetSourceChangesVisitorsCovid() (filePathStr string, err error) {
|
|
|
chromedp.Click(`//div//button[contains(@data-track-note, "chart-download-csv")]`, chromedp.NodeVisible),
|
|
|
)
|
|
|
if err != nil {
|
|
|
- log.Fatal(err)
|
|
|
+ //log.Fatal(err)
|
|
|
return
|
|
|
}
|
|
|
//log.Print("end time"+time.Now().Format("2006-01-02_15:04:05.999"))
|