From e28750b14efc3d9aa639f7c65566fcabf35ce974 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sat, 20 Oct 2018 10:50:56 +0800 Subject: [PATCH] - print error in Format4Output --- utils/typeconv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/typeconv.go b/utils/typeconv.go index a8e48ad6..3dad529d 100644 --- a/utils/typeconv.go +++ b/utils/typeconv.go @@ -325,6 +325,7 @@ func Format4Output(obj interface{}, isSingleLine bool) (retVal string) { } } if err != nil { + baseapi.SugarLogger.Infof("Format4Output Marshal:%v failed with error:%v", obj, err) retVal = fmt.Sprintf("%v", obj) } }