summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-02-21 09:20:10 -0500
committerDerrick Anderson <derrick@andersonwebstudio.com>2018-02-21 09:20:10 -0500
commit659ce8c60012a7d5fd597997b1794ac512b3b155 (patch)
tree5708a1a2b55992d310ecf9745425097270cd2a05
parenta9d4c7d4c1f6398bebba732d07108fe30ddd6319 (diff)
downloadchat-659ce8c60012a7d5fd597997b1794ac512b3b155.tar.gz
chat-659ce8c60012a7d5fd597997b1794ac512b3b155.tar.bz2
chat-659ce8c60012a7d5fd597997b1794ac512b3b155.zip
Change log level of 404s to DEBUG (#8339)
-rw-r--r--api4/context.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/api4/context.go b/api4/context.go
index 82c8d9e6c..e079428ac 100644
--- a/api4/context.go
+++ b/api4/context.go
@@ -212,8 +212,10 @@ func (c *Context) LogAuditWithUserId(userId, extraInfo string) {
func (c *Context) LogError(err *model.AppError) {
- // filter out endless reconnects
- if c.Path == "/api/v3/users/websocket" && err.StatusCode == 401 || err.Id == "web.check_browser_compatibility.app_error" {
+ // Filter out 404s, endless reconnects and browser compatibility errors
+ if err.StatusCode == http.StatusNotFound ||
+ (c.Path == "/api/v3/users/websocket" && err.StatusCode == 401) ||
+ err.Id == "web.check_browser_compatibility.app_error" {
c.LogDebug(err)
} else {
l4g.Error(utils.TDefault("api.context.log.error"), c.Path, err.Where, err.StatusCode,