diff options
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 7 |
1 files changed, 1 insertions, 6 deletions
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) |