- print error in Format4Output
This commit is contained in:
@@ -325,6 +325,7 @@ func Format4Output(obj interface{}, isSingleLine bool) (retVal string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
baseapi.SugarLogger.Infof("Format4Output Marshal:%v failed with error:%v", obj, err)
|
||||||
retVal = fmt.Sprintf("%v", obj)
|
retVal = fmt.Sprintf("%v", obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user