- 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

@@ -149,8 +149,8 @@ func (e *ELMAPI) AccessELM(action string, params map[string]interface{}) (retVal
if errinfoMap == nil {
return common.PAErrorLevelSuccess, nil
}
baseapi.SugarLogger.Debug(jsonResult1)
errCode := errinfoMap["code"].(string)
if errCode == "EXCEED_LIMIT" {
return common.PAErrorLevelExceedLimit, nil
} else if errCode == "SERVER_ERROR" || errCode == "BIZ_SYSTEM_ERROR" || errCode == "BIZ_1006" || errCode == "BUSINESS_ERROR" {