Merge branch 'merge47intomaster'
Этот коммит содержится в:
@@ -212,8 +212,10 @@ func (c *Context) LogAuditWithUserId(userId, extraInfo string) {
|
|||||||
|
|
||||||
func (c *Context) LogError(err *model.AppError) {
|
func (c *Context) LogError(err *model.AppError) {
|
||||||
|
|
||||||
// filter out endless reconnects
|
// Filter out 404s, endless reconnects and browser compatibility errors
|
||||||
if c.Path == "/api/v3/users/websocket" && err.StatusCode == 401 || err.Id == "web.check_browser_compatibility.app_error" {
|
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)
|
c.LogDebug(err)
|
||||||
} else {
|
} else {
|
||||||
l4g.Error(utils.TDefault("api.context.log.error"), c.Path, err.Where, err.StatusCode,
|
l4g.Error(utils.TDefault("api.context.log.error"), c.Path, err.Where, err.StatusCode,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user