浏览代码

执行时间 日志追踪

rengb 5 年之前
父节点
当前提交
14f78a94f3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/QCCatalogue.java

+ 4 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/QCCatalogue.java

@@ -23,6 +23,7 @@ public class QCCatalogue {
     protected ThreadLocal<String> info = new ThreadLocal<String>();
 
     public void execute(InputInfo inputInfo, OutputInfo outputInfo) {
+        long t1 = System.currentTimeMillis();
         if (outputInfo.getResult().get(className) != null) {
             return;
         }
@@ -35,8 +36,10 @@ public class QCCatalogue {
             start(inputInfo, outputInfo);
         } catch (Exception e) {
             variablePreset("-1", "");
-            log.info(e.getMessage() + "......类名:" + this.className);
+            log.error(e.getMessage() + "......类名:" + this.className);
         }
+        long t2 = System.currentTimeMillis();
+        log.error(inputInfo.getMedicalRecordInfoDoc().getStructureMap().get("behospitalCode") + "-----" + className + "(规则)  耗时:" + (t2 - t1));
         insertOpt(outputInfo);
     }