func printCookies(jar *cookiejar.Jar, scraperConfig config, msg string) {
	driverOptions := scraperConfig.DriverOptions
	if driverOptions != nil && !driverOptions.UseCDP {
		var foundURLs []*url.URL

		for _, ckURL := range driverOptions.Cookies { // go through all cookies
			url, err := url.Parse(ckURL.CookieURL) // CookieURL must be valid, include schema
			if err == nil {
				foundURLs = append(foundURLs, url)
			}
		}
		if len(foundURLs) > 0 {
			logger.Debugf("%s\n", msg)
			printJarCookies(jar, foundURLs)

		}
	}
}
// printCookies prints all cookies from the given cookie jar
printCookies prints all cookies from the given cookie jar
// printCookies prints all cookies from the given cookie jar
func printCookies(jar *cookiejar.Jar, scraperConfig config, msg string) {
	driverOptions := scraperConfig.DriverOptions
	if driverOptions != nil && !driverOptions.UseCDP {
		var foundURLs []*url.URL
		for _, ckURL := range driverOptions.Cookies { 
			url, err := url.Parse(ckURL.CookieURL) 
			if err == nil {
				foundURLs = append(foundURLs, url)
			}
		}
		if len(foundURLs) > 0 {
			logger.Debugf("%s\n", msg)
			printJarCookies(jar, foundURLs)
		}
	}
}
func printCookies ( jar * cookiejar . Jar , scraperConfig config , msg string ) { driverOptions := scraperConfig . DriverOptions if driverOptions != nil && ! driverOptions . UseCDP { var foundURLs [ ] * url . URL for _ , ckURL := range driverOptions . Cookies { url , err := url . Parse ( ckURL . CookieURL ) if err == nil { foundURLs = append ( foundURLs , url ) } } if len ( foundURLs ) > 0 { logger . Debugf ( " \n " , msg ) printJarCookies ( jar , foundURLs ) } } }
printCookies prints all cookies from the given cookie jar
printCookies prints all cookies from the given cookie jar
// go through all cookies // CookieURL must be valid, include schema