summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-04-17 21:32:20 -0300
committerCorey Hulen <corey@hulen.com>2016-04-17 17:32:20 -0700
commit74e5161a4cb581c770fa03bc2538dc7f2319bc2e (patch)
treed0d7b65f5001526bd1bb7f42f38c99f7735f4f00 /api
parentc6c3f1e47829bba9b332da3d4c61193532e87032 (diff)
downloadchat-74e5161a4cb581c770fa03bc2538dc7f2319bc2e.tar.gz
chat-74e5161a4cb581c770fa03bc2538dc7f2319bc2e.tar.bz2
chat-74e5161a4cb581c770fa03bc2538dc7f2319bc2e.zip
PLT-2593: Fix logs being stored with user locale (#2722)
Diffstat (limited to 'api')
-rw-r--r--api/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go
index ddc8f79b1..56c8c86d2 100644
--- a/api/context.go
+++ b/api/context.go
@@ -267,7 +267,7 @@ 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.Message, err.DetailedError)
+ c.RequestId, c.Session.UserId, c.IpAddress, err.SystemMessage(utils.T), err.DetailedError)
}
func (c *Context) UserRequired() {