My question is this package-specific: https://github.com/knq/chromedp/
This is just a glimpse of a log when running chromedp Action
s. It is not event an Action-related piece. What is the correct way to make the logging silent or less verbose?
My question is this package-specific: https://github.com/knq/chromedp/
This is just a glimpse of a log when running chromedp Action
s. It is not event an Action-related piece. What is the correct way to make the logging silent or less verbose?
The solution is simple:
Code taken from their sample:
// create chrome instance
c, err := cdp.New(ctxt, cdp.WithLog(log.Printf))
if err != nil {
log.Fatal(err)
}
change to
// create chrome instance
c, err := cdp.New(ctxt) // no WithLog() option
if err != nil {
log.Fatal(err)
}