Converting to structured logging the file cmd/mattermost/commands/utils.go (#12091)

This commit is contained in:
Nikhil Ranjan
2019-09-17 21:54:43 +02:00
committed by Miguel Alatzar
parent 3d4c941ba8
commit 3a3676eb12

View File

@@ -22,7 +22,7 @@ func prettyPrintStruct(t interface{}) string {
func structToMap(t interface{}) map[string]interface{} {
defer func() {
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))
}
}()