diff --git a/utils/methods.go b/utils/methods.go index bee2243..7056f3d 100644 --- a/utils/methods.go +++ b/utils/methods.go @@ -38,7 +38,7 @@ func GetEnv(name string) (string, error) { func InitChromeDp() (chromedpCtx context.Context, cancelFnc context.CancelFunc) { log.Printf("Initializing chromedp...") if Headless { - chromedpCtx, cancelFnc = chromedp.NewContext(context.Background()) + chromedpCtx, cancelFnc = chromedp.NewContext(context.Background(), chromedp.WithDebugf(log.Printf)) } else { allocCtx, _ := chromedp.NewExecAllocator(context.Background()) chromedpCtx, cancelFnc = chromedp.NewContext(allocCtx)