Этот коммит содержится в:
Corey Hulen
2016-07-01 11:57:17 -08:00
коммит произвёл GitHub
родитель 69ea1d7193
Коммит b7e7474a5e

Просмотреть файл

@@ -279,8 +279,14 @@ func (c *Context) LogAuditWithUserId(userId, extraInfo string) {
}
func (c *Context) LogError(err *model.AppError) {
l4g.Error(utils.T("api.context.log.error"), c.Path, err.Where, err.StatusCode,
c.RequestId, c.Session.UserId, c.IpAddress, err.SystemMessage(utils.T), err.DetailedError)
// filter out endless reconnects
if c.Path == "/api/v3/users/websocket" && err.StatusCode == 401 {
c.LogDebug(err)
} else {
l4g.Error(utils.T("api.context.log.error"), c.Path, err.Where, err.StatusCode,
c.RequestId, c.Session.UserId, c.IpAddress, err.SystemMessage(utils.T), err.DetailedError)
}
}
func (c *Context) LogDebug(err *model.AppError) {