From a8cf08d6ef2fc0e08592e1466abaf3e3c9c35953 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Fri, 28 Apr 2017 07:03:52 -0700 Subject: PLT-6322 log error messages in english (#6234) --- api/context.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'api/context.go') diff --git a/api/context.go b/api/context.go index 282b45c86..117fff708 100644 --- a/api/context.go +++ b/api/context.go @@ -281,14 +281,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) UserRequired() { -- cgit v1.2.3-1-g7c22