From c7150c4c80a2057b371b8d6f0c7cc786e8d240fd Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Mon, 22 Aug 2016 06:06:35 -0800 Subject: Fixing 404 errors (#3838) --- api/context.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'api/context.go') diff --git a/api/context.go b/api/context.go index c0e6bf3b5..931909b2e 100644 --- a/api/context.go +++ b/api/context.go @@ -511,12 +511,7 @@ func Handle404(w http.ResponseWriter, r *http.Request) { err.Translate(utils.T) err.StatusCode = http.StatusNotFound - // filter out old paths that are poluting the log file - if strings.Contains(r.URL.Path, "/api/v1/") { - l4g.Debug("%v: code=404 ip=%v", r.URL.Path, GetIpAddress(r)) - } else { - l4g.Error("%v: code=404 ip=%v", r.URL.Path, GetIpAddress(r)) - } + l4g.Debug("%v: code=404 ip=%v", r.URL.Path, GetIpAddress(r)) if IsApiCall(r) { w.WriteHeader(err.StatusCode) -- cgit v1.2.3-1-g7c22