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); } }