- fix unittest bug caused by sugarLogger.

This commit is contained in:
gazebo
2018-06-20 20:55:35 +08:00
parent 21773180a2
commit efbfafb4ab
6 changed files with 25 additions and 16 deletions

View File

@@ -182,7 +182,7 @@ func (j *JDAPI) AccessJDQuery(apiStr string, jdParams map[string]string) (retVal
retVal = jsonResult1
return common.PAErrorLevelSuccess, nil
}
baseapi.SugarLogger.Debugf("jd code is:%s", code)
baseapi.SugarLogger.Debug(jsonResult1)
if _, ok := exceedLimitCodes[code]; ok {
return common.PAErrorLevelExceedLimit, nil
} else if _, ok := canRetryCodes[code]; ok {