Converting to structured logging the file cmd/mattermost/commands/utils.go (#12091)
Этот коммит содержится в:
коммит произвёл
Miguel Alatzar
родитель
3d4c941ba8
Коммит
3a3676eb12
@@ -22,7 +22,7 @@ func prettyPrintStruct(t interface{}) string {
|
|||||||
func structToMap(t interface{}) map[string]interface{} {
|
func structToMap(t interface{}) map[string]interface{} {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
mlog.Error(fmt.Sprintf("Panicked in structToMap. This should never happen. %v", r))
|
mlog.Error("Panicked in structToMap. This should never happen.", mlog.Any("recover", r))
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user