MM-49154: Do not translate server side logs (#22058)

https://mattermost.atlassian.net/browse/MM-49154

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2023-01-12 23:14:29 +05:30
коммит произвёл GitHub
родитель 360d590728
Коммит e7deb39046

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

@@ -360,9 +360,11 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Handle errors that have occurred
if c.Err != nil {
c.Err.Translate(c.AppContext.T)
c.Err.RequestId = c.AppContext.RequestId()
c.LogErrorByCode(c.Err)
// The locale translation needs to happen after we have logged it.
// We don't want the server logs to be translated as per user locale.
c.Err.Translate(c.AppContext.T)
c.Err.Where = r.URL.Path