summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-08-22 06:06:35 -0800
committerChristopher Speller <crspeller@gmail.com>2016-08-22 10:06:35 -0400
commitc7150c4c80a2057b371b8d6f0c7cc786e8d240fd (patch)
treef72229dac821390d4e2a50515873d137b62dbddc /api/context.go
parentefef3e8ee270655dcf91f9cd322e43f64c1a1ff8 (diff)
downloadchat-c7150c4c80a2057b371b8d6f0c7cc786e8d240fd.tar.gz
chat-c7150c4c80a2057b371b8d6f0c7cc786e8d240fd.tar.bz2
chat-c7150c4c80a2057b371b8d6f0c7cc786e8d240fd.zip
Fixing 404 errors (#3838)
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go7
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)