From 150f6906020dc83ae0a4e814c19f3377b8f2a53f Mon Sep 17 00:00:00 2001 From: Dean Sheather <dean@deansheather.com> Date: Thu, 28 Sep 2017 23:48:34 +1000 Subject: [PATCH] remove a println that logged matched request hosts Not to worry, this was logging information that was already logged by Prometheus. No wildcard prefixes were logged. --- cdn-origin.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cdn-origin.go b/cdn-origin.go index 90cf5e3..49f70c2 100644 --- a/cdn-origin.go +++ b/cdn-origin.go @@ -336,7 +336,6 @@ func requestHandler(ctx *fasthttp.RequestCtx) { if strings.HasPrefix(match, asteriskPeriodStr) { hostSplit[0] = asteriskStr } - fmt.Println(match, hostSplit) prometheus.HTTPRequestsTotal.With(prom.Labels{host: strings.Join(hostSplit, periodStr)}).Inc() } } else { -- GitLab