summaryrefslogtreecommitdiff
path: root/crawler/sanitize.go
diff options
context:
space:
mode:
authorMaximilian Möhring2019-05-15 13:21:54 +0200
committerMaximilian Möhring2019-05-15 13:21:54 +0200
commita5bd8848db22932c232d7799e68fbc4ea43056d8 (patch)
tree8167ea75a2a68e1f47b25eaa0f90c1df15e558e2 /crawler/sanitize.go
parenta2d595423e4270d8e644212021ba70c70df075d9 (diff)
downloadalkobote-a5bd8848db22932c232d7799e68fbc4ea43056d8.tar.gz
Introduces TRACE log level. (crawler)
Diffstat (limited to 'crawler/sanitize.go')
-rw-r--r--crawler/sanitize.go6
1 files changed, 3 insertions, 3 deletions
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())