From cd8670da4ebf5e4da598d455c51448f9b369ddd8 Mon Sep 17 00:00:00 2001 From: Rosy-zhudan Date: Wed, 31 Jul 2019 11:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=97=A5=E5=BF=97=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/misc2.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/business/jxstore/misc/misc2.go b/business/jxstore/misc/misc2.go index 08a8bf401..a8d23957e 100644 --- a/business/jxstore/misc/misc2.go +++ b/business/jxstore/misc/misc2.go @@ -79,7 +79,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) { storeInfo, err := cms.GetStores(ctx, "", map[string]interface{}{}, 0, -1, utils.DefaultTimeValue, utils.DefaultTimeValue, 0, 0) if err != nil { - baseapi.SugarLogger.Errorf("storeInfo error:%v", err) + baseapi.SugarLogger.Errorf("StartOrEndOpStore cms.GetStores error:%v", err) } else { taskFunc := func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { storeListValue := batchItemList[0].(*cms.StoreExt) @@ -92,14 +92,14 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) { if startTime != 0 && endTime != 0 { startOpStoreTime = startTime endOpStoreTime = endTime - baseapi.SugarLogger.Debugf("SetStoreOptime:%d do:%d", startTime, endTime) + baseapi.SugarLogger.Debugf("StartOrEndOpStore SetStoreOptime:%d do:%d", startTime, endTime) } vendorStoreID := utils.Interface2String(vendorListValue["vendorStoreID"]) - baseapi.SugarLogger.Debugf("storeID:%d vendorID:%d vendorStoreID:%s", storeID, vendorID, vendorStoreID) + baseapi.SugarLogger.Debugf("StartOrEndOpStore storeID:%d vendorID:%d vendorStoreID:%s", storeID, vendorID, vendorStoreID) singleStoreHandler := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreStoreSkuHandler) storeSkuNameList, err := singleStoreHandler.GetStoreSkusFullInfo(ctx, nil, storeID, vendorStoreID, nil) if err != nil { - baseapi.SugarLogger.Errorf("storeSkuNameList error:%v storeID:%d vendorID:%d vendorStoreID:%s", err, storeID, vendorID, vendorStoreID) + baseapi.SugarLogger.Errorf("StartOrEndOpStore GetStoreSkusFullInfo error:%v storeID:%d vendorID:%d vendorStoreID:%s", err, storeID, vendorID, vendorStoreID) } else { filterStoreSkuNameList := FilterSkuNameList(storeSkuNameList) storeSkuList := putils.StoreSkuFullList2Bare(filterStoreSkuNameList) @@ -115,7 +115,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) { //var successList []*partner.StoreSkuInfo if _, err = singleStoreHandler.UpdateStoreSkusStock(ctx, storeID, vendorStoreID, batchedStoreSkuList); err == nil { //successList = batchedStoreSkuList - //baseapi.SugarLogger.Debugf("successList:%v error:%v", successList, err) + //baseapi.SugarLogger.Debugf("StartOrEndOpStore successList:%v error:%v", successList, err) } return nil, err }, ctx, task, storeSkuList, singleStoreHandler.GetStoreSkusBatchSize(partner.FuncUpdateStoreSkusStock), true) @@ -134,7 +134,7 @@ func StartOrEndOpStore(isStart bool, startTime, endTime int16) { tasksch.HandleTask(task, nil, true).Run() _, err = task.GetResult(0) if err != nil { - baseapi.SugarLogger.Errorf("tasksch error:%v", err) + baseapi.SugarLogger.Debugf("StartOrEndOpStore tasksch error:%v", err) } } endProcessTime := time.Now().Unix()