mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-2593: Fix logs being stored with user locale (#2722)
This commit is contained in:
@@ -50,6 +50,14 @@ func (er *AppError) Translate(T goi18n.TranslateFunc) {
|
||||
}
|
||||
}
|
||||
|
||||
func (er *AppError) SystemMessage(T goi18n.TranslateFunc) string {
|
||||
if er.params == nil {
|
||||
return T(er.Id)
|
||||
} else {
|
||||
return T(er.Id, er.params)
|
||||
}
|
||||
}
|
||||
|
||||
func (er *AppError) ToJson() string {
|
||||
b, err := json.Marshal(er)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user