diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-01-23 10:25:10 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-01-23 10:25:10 -0300 |
commit | eb58e631e74d9a5ff0992a67cd9452b3a525c5e6 (patch) | |
tree | 69ed60909505fe6c0a1096f2be9f7b9d4d7243be /api/web_conn.go | |
parent | 1a0b12313bd0af1724df2fc6260ef284acfc5f93 (diff) | |
download | chat-eb58e631e74d9a5ff0992a67cd9452b3a525c5e6.tar.gz chat-eb58e631e74d9a5ff0992a67cd9452b3a525c5e6.tar.bz2 chat-eb58e631e74d9a5ff0992a67cd9452b3a525c5e6.zip |
PLT-7: Refactoring api to use translations (chunk 3)
- Add spanish translations
- Not included tests and templates
Diffstat (limited to 'api/web_conn.go')
-rw-r--r-- | api/web_conn.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/web_conn.go b/api/web_conn.go index 2b0e29038..515a8ab31 100644 --- a/api/web_conn.go +++ b/api/web_conn.go @@ -8,6 +8,7 @@ import ( "github.com/gorilla/websocket" "github.com/mattermost/platform/model" "github.com/mattermost/platform/store" + "github.com/mattermost/platform/utils" "time" ) @@ -33,11 +34,11 @@ func NewWebConn(ws *websocket.Conn, teamId string, userId string, sessionId stri pchan := Srv.Store.User().UpdateLastPingAt(userId, model.GetMillis()) if result := <-achan; result.Err != nil { - l4g.Error("Failed to update LastActivityAt for user_id=%v and session_id=%v, err=%v", userId, sessionId, result.Err) + l4g.Error(utils.T("api.web_conn.new_web_conn.last_activity.error"), userId, sessionId, result.Err) } if result := <-pchan; result.Err != nil { - l4g.Error("Failed to updated LastPingAt for user_id=%v, err=%v", userId, result.Err) + l4g.Error(utils.T("api.web_conn.new_web_conn.last_ping.error"), userId, result.Err) } }() @@ -56,7 +57,7 @@ func (c *WebConn) readPump() { go func() { if result := <-Srv.Store.User().UpdateLastPingAt(c.UserId, model.GetMillis()); result.Err != nil { - l4g.Error("Failed to updated LastPingAt for user_id=%v, err=%v", c.UserId, result.Err) + l4g.Error(utils.T("api.web_conn.new_web_conn.last_ping.error"), c.UserId, result.Err) } }() |