Do not SetError on tracing event when whitelist allowed request

This commit is contained in:
Nick Douma
2020-09-21 12:00:04 +02:00
committed by GitHub
parent a3d37f636e
commit d04b812412
+2 -1
View File
@@ -45,7 +45,8 @@ func (wl *IPWhiteLister) handle(w http.ResponseWriter, r *http.Request, next htt
return
}
tracing.SetErrorAndDebugLog(r, "request %+v matched white list %v - passing", r, wl.whiteLister)
tracing.LogEventf(r, "request %+v matched white list %v - passing", r, wl.whiteLister)
log.Debugf("request %+v matched white list %v - passing", r, wl.whiteLister)
next.ServeHTTP(w, r)
}