From e43c11a70e92177b3e652265ea7b3537fcbb3024 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 29 Dec 2021 09:54:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B5=84=E6=BA=90=E6=B1=A0?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/api/jmeter/JMeterService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java b/backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java index d9c222cefa..25494a5f76 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java @@ -149,23 +149,22 @@ public class JMeterService { ResponseEntity result = restTemplate.postForEntity(uri, request, String.class); if (result == null || !StringUtils.equals("SUCCESS", result.getBody())) { - LogUtil.info(result.getBody()); RemakeReportService remakeReportService = CommonBeanFactory.getBean(RemakeReportService.class); RunRequest runRequest = new RunRequest(); runRequest.setTestId(request.getTestId()); runRequest.setRunMode(request.getRunMode()); remakeReportService.remake(request); - LoggerUtil.error("发送请求[ " + request.getTestId() + " ] 到" + uri + " 节点执行失败"); + LoggerUtil.info(result.getBody()); } } catch (Exception e) { - LogUtil.error(e); RemakeReportService remakeReportService = CommonBeanFactory.getBean(RemakeReportService.class); RunRequest runRequest = new RunRequest(); runRequest.setTestId(request.getTestId()); runRequest.setRunMode(request.getRunMode()); remakeReportService.remake(request); LoggerUtil.error("发送请求[ " + request.getTestId() + " ] 执行失败:" + e.getMessage()); + LoggerUtil.error(e); } }