From 26e0f4e121c041572637757b853d44703bc6cdb2 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 30 Jun 2021 17:24:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=90=8C=E6=AD=A5=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E5=A4=B1=E8=B4=A5=E8=AE=B0=E5=BD=95=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/job/sechedule/IssuesJob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/job/sechedule/IssuesJob.java b/backend/src/main/java/io/metersphere/job/sechedule/IssuesJob.java index e753620e0c..96bef9feee 100644 --- a/backend/src/main/java/io/metersphere/job/sechedule/IssuesJob.java +++ b/backend/src/main/java/io/metersphere/job/sechedule/IssuesJob.java @@ -10,6 +10,7 @@ import io.metersphere.base.domain.TestPlanTestCaseWithBLOBs; import io.metersphere.commons.utils.LogUtil; import io.metersphere.track.service.IssuesService; import io.metersphere.track.service.TestPlanTestCaseService; +import org.apache.commons.lang3.exception.ExceptionUtils; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -24,7 +25,7 @@ public class IssuesJob { @QuartzScheduled(fixedDelay = 3600 * 1000) //@Scheduled(fixedDelay = 120 * 1000) - public void IssuesCount() { + public void issuesCount() { int pageSize = 100; int pages = 1; for (int i = 0; i < pages; i++) { @@ -37,7 +38,7 @@ public class IssuesJob { int issuesCount = issues.size(); testPlanTestCaseService.updateIssues(issuesCount, l.getPlanId(), l.getCaseId(), JSON.toJSONString(issues)); } catch (Exception e) { - LogUtil.error("定时任务处理bug数量报错planId: " + l.getPlanId(), e); + LogUtil.error("定时任务处理bug数量报错planId: " + l.getPlanId(), ExceptionUtils.getStackTrace(e)); } }); }