فهرست منبع

去掉多余的日志打印

lijie 3 سال پیش
والد
کامیت
1b135d792c

+ 1 - 4
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/common/utils/SpaceAffectUtil.kt

@@ -204,10 +204,7 @@ class SpaceAffectUtil {
     private fun updateSpaceList(projectId: String, spaces: List<DCSpace?>?) {
         val request = UpdateRequest<DCSpace>()
         request.content = spaces as ArrayList<DCSpace>
-        val spaceUpdate = service!!.spaceUpdate(request, projectId)
-        if (!"success".equals(spaceUpdate?.result!!)){
-            logger.error("#######更新空间失败:"+JSON.toJSONString(spaceUpdate))
-        }
+        service!!.spaceUpdate(request, projectId)
     }
 
     /**

+ 1 - 3
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/datacenter/DataCenterRequest.kt

@@ -205,9 +205,7 @@ class DataCenterRequest{
             val postBody = JSON.toJSONString(request)
             val resultStr = HttpService.sendPostDataCenter(properties.datacenter.spaceUpdate, postBody, projectId)
             return JSON.parseObject(resultStr, object : TypeReference<BaseResponse>() { })
-        } catch (e: Exception) {
-            logger.error("#########更新空间失败:",e)
-        }
+        } catch (e: Exception) {}
         return null
     }