mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Converting to structured logging the file cmd/mattermost/commands/utils.go (#12091)
This commit is contained in:
committed by
Miguel Alatzar
parent
3d4c941ba8
commit
3a3676eb12
@@ -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))
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user