diff --git a/web/handlers.go b/web/handlers.go index 333e3906e5..9cc655eb40 100644 --- a/web/handlers.go +++ b/web/handlers.go @@ -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