MM-49154: Do not translate server side logs (#22058)
https://mattermost.atlassian.net/browse/MM-49154 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
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
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user