From a5bd8848db22932c232d7799e68fbc4ea43056d8 Mon Sep 17 00:00:00 2001 From: Maximilian Möhring Date: Wed, 15 May 2019 13:21:54 +0200 Subject: Introduces TRACE log level. (crawler) --- crawler/sanitize.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawler/sanitize.go') diff --git a/crawler/sanitize.go b/crawler/sanitize.go index 25e8a09..8eb9444 100644 --- a/crawler/sanitize.go +++ b/crawler/sanitize.go @@ -66,7 +66,7 @@ func sanitize_offer(angebote []Angebot, shop Shop, try int) []Angebot { offer.Website = "" if offer.Age == 0 { - offer.Debug("GREP") + //offer.Trace("GREP") } W = append(W, offer) @@ -272,7 +272,7 @@ func get_age_from_name(name string) int { } age_noisy := r_years.FindString(name) if age_noisy == "" { - log.Debug("get_age_from_name: No Age found in (" + name + ")") + log.Trace("get_age_from_name: No Age found in (" + name + ")") return 0 } @@ -292,7 +292,7 @@ func get_age_from_name(name string) int { func sanitize_image_url(url string) error { - log.Debugf("sanitize_image_url: Making HEAD request to %s \n", url) + log.Tracef("sanitize_image_url: Making HEAD request to %s \n", url) resp, err := http.Head(url) if err != nil { return fmt.Errorf("sanitize_image_url: HEAD request failed. Got error: %s \n", err.Error()) -- cgit v1.2.3