diff options
author | Corey Hulen <corey@hulen.com> | 2017-04-28 07:03:52 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-04-28 10:03:52 -0400 |
commit | a8cf08d6ef2fc0e08592e1466abaf3e3c9c35953 (patch) | |
tree | 4a2b7df14da7e8217de0425deea760f9cac06c8e /api4 | |
parent | d0618afb508f564746fc305f1d23ff33f728dcd8 (diff) | |
download | chat-a8cf08d6ef2fc0e08592e1466abaf3e3c9c35953.tar.gz chat-a8cf08d6ef2fc0e08592e1466abaf3e3c9c35953.tar.bz2 chat-a8cf08d6ef2fc0e08592e1466abaf3e3c9c35953.zip |
PLT-6322 log error messages in english (#6234)
Diffstat (limited to 'api4')
-rw-r--r-- | api4/context.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api4/context.go b/api4/context.go index 5522d1836..32db0ed7d 100644 --- a/api4/context.go +++ b/api4/context.go @@ -227,14 +227,14 @@ func (c *Context) LogError(err *model.AppError) { if c.Path == "/api/v3/users/websocket" && err.StatusCode == 401 || err.Id == "web.check_browser_compatibility.app_error" { 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) + l4g.Error(utils.TDefault("api.context.log.error"), c.Path, err.Where, err.StatusCode, + c.RequestId, c.Session.UserId, c.IpAddress, err.SystemMessage(utils.TDefault), err.DetailedError) } } func (c *Context) LogDebug(err *model.AppError) { - l4g.Debug(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) + l4g.Debug(utils.TDefault("api.context.log.error"), c.Path, err.Where, err.StatusCode, + c.RequestId, c.Session.UserId, c.IpAddress, err.SystemMessage(utils.TDefault), err.DetailedError) } func (c *Context) IsSystemAdmin() bool { |