finalize debug logging

This commit is contained in:
Amrit Panesar committed 2020-10-29 15:37:03 -07:00
1 parent b87ac1bb0e
commit ec30c6e4b2
8 files changed
+57 -27

No files matched your search

+1 -4
View File
@@ -3,7 +3,6 @@ package go_cbox_scraper
import (
"errors"
"fmt"
"log"
"net/http"
"net/url"
"regexp"
@@ -136,9 +135,7 @@ func (p *CBoxPage) FetchNext() error {
}
func (p *CBoxPage) request(request *http.Request) (*goquery.Document, error) {
if p.Debug {
log.Println(request.URL.String())
}
p.debugPrintln(request.URL.String())
httpClient := &http.Client{
Timeout: 30 * time.Second,