refactor(data):添加chromedriver路径日志输出

- 在 GetFinancialReports、SearchStockPriceInfo 和 SearchStockInfo 函数中添加了 chromedriver 路径的日志输出
- 有助于调试和验证 chromedriver 的正确路径,确保自动化任务顺利进行
This commit is contained in:
spark 2025-02-12 12:53:15 +08:00
parent 70ee9df22a
commit 37e63538e2
2 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,8 @@ func GetFinancialReports(stockCode string) *[]string {
var ctx context.Context
var cancel context.CancelFunc
path, e := checkEdgeOnWindows()
logger.SugaredLogger.Infof("GetFinancialReports path:%s", path)
if e {
pctx, pcancel := chromedp.NewExecAllocator(
timeoutCtx,

View File

@ -525,6 +525,7 @@ func SearchStockPriceInfo(stockCode string) *[]string {
var ctx context.Context
var cancel context.CancelFunc
path, e := checkEdgeOnWindows()
logger.SugaredLogger.Infof("SearchStockPriceInfo path:%s", path)
if e {
pctx, pcancel := chromedp.NewExecAllocator(
timeoutCtx,
@ -614,6 +615,8 @@ func SearchStockInfo(stock, msgType string) *[]string {
var ctx context.Context
var cancel context.CancelFunc
path, e := checkEdgeOnWindows()
logger.SugaredLogger.Infof("SearchStockInfo path:%s", path)
if e {
pctx, pcancel := chromedp.NewExecAllocator(
timeoutCtx,