diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index c5119673..916e30e2 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -304,9 +304,9 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[ if err == nil { failedFoodList, err = handleRetailBatchResult(result) } - globals.SugarLogger.Debugf("=============foodDataList := %s", utils.Format4Output(foodDataList, false)) - globals.SugarLogger.Debugf("=============result := %s", utils.Format4Output(result, false)) - globals.SugarLogger.Debugf("=============err := %v", err) + if err != nil { + globals.SugarLogger.Debugf("=============err := %v", err) + } return failedFoodList, err }