瀏覽代碼

update log

deason 4 年之前
父節點
當前提交
45649a82ea

+ 6 - 5
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/impl/ExamCaptureServiceImpl.java

@@ -131,12 +131,13 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
 
                 //如果API并发次数超过上限,则保存错误信息到队列,并抛出异常,用于协调满载队列线程
                 if (errMsg.contains(Constants.FACE_COMPARE_CONCURRENCY_LIMIT_EXCEEDED)) {
+
+                    captureLog.error("[FaceCompareQueue] FacePlusPlus_QPS_CONCURRENCY_LIMITED");
+
                     examCaptureQueueService.saveExamCaptureQueueEntityByFailed(examCaptureQueue.getId(),
                             "SatusCode:" + jsonHttpResponseHolder.getStatusCode() + " | " + faceCompareResult.toString(),
                             ExamCaptureQueueStatus.PROCESS_FACE_COMPARE_FAILED);
 
-                    captureLog.error("face plus plus out of concurrency limit");
-
                     throw new StatusException(Constants.FACE_COMPARE_CONCURRENCY_LIMIT_EXCEEDED, "face++ API接口超过最大并发次数");
                 }
 
@@ -267,12 +268,12 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
 
                 //如果API并发次数超过上限,则保存错误信息到队列,并抛出异常,用于协调满载队列线程
                 if (errCode.equals(Constants.BAIDU_FACELIVENESS_QPS_LIMIT_EXCEEDED_CODE)) {
+                    captureLog.error("[FaceLivenessQueue] Baidu_QPS_CONCURRENCY_LIMITED");
+
                     examCaptureQueueService.saveExamCaptureQueueEntityByFailed(examCaptureQueue.getId(),
                             "SatusCode:" + jsonHttpResponseHolder.getStatusCode() + " | " + faceLivenessResultJson.toString(),
                             ExamCaptureQueueStatus.PROCESS_FACELIVENESS_FAILED);
 
-                    captureLog.debug("[DISPOSE_BAIDUFACELIVENESS] 百度在线活体API接口超过最大并发次数");
-
                     throw new StatusException(Constants.BAIDU_FACELIVENESS_QPS_LIMIT_EXCEEDED_CODE, "百度在线活体API接口超过最大并发次数");
                 }
 
@@ -392,7 +393,7 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
                 compareFaceSyncInfo.setExistsSystemError(true);
             }
             if (errMsg.contains(Constants.FACE_COMPARE_CONCURRENCY_LIMIT_EXCEEDED)) {
-                captureLog.error("face plus plus out of concurrency limit");
+                captureLog.error("[FaceCompare] FacePlusPlus_QPS_CONCURRENCY_LIMITED");
                 compareFaceSyncInfo.setExistsSystemError(true);
             }
             compareFaceSyncInfo.setErrorMsg("facePP called failed : " + facePPResult.toString());

+ 1 - 1
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/worker/BaiduFaceLivenessWorker.java

@@ -54,7 +54,7 @@ public class BaiduFaceLivenessWorker implements Worker<ExamCaptureQueueInfo> {
             if ((e.getCode().equals(Constants.BAIDU_FACELIVENESS_QPS_LIMIT_EXCEEDED_CODE))) {
                 // 如果超过并发次数,则添加异常次数
                 controller.addConcurrencyWarn();
-                captureLog.error("[BAIDU_FACELIVENESS_WORKER.] 超过并发次数 ");
+                captureLog.debug("[BAIDU_FACELIVENESS_WORKER.] 超过并发次数 ");
             } else {
                 ExamCaptureProcessStatisticController.increaseFaceLivenessDetectCount();
                 captureLog.error("[BAIDU_FACELIVENESS_WORKER.] 自定义异常 " + e.getDesc(), e);