refactor: 场景资源池执行添加日志打印

This commit is contained in:
chenjianxing 2021-12-27 17:09:13 +08:00 committed by jianxing
parent 6935804a1c
commit 24bf606766
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public class JMeterService {
ResponseEntity<String> 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());
@ -158,6 +159,7 @@ public class JMeterService {
LoggerUtil.error("发送请求[ " + request.getTestId() + " ] 到" + uri + " 节点执行失败");
}
} catch (Exception e) {
LogUtil.error(e);
RemakeReportService remakeReportService = CommonBeanFactory.getBean(RemakeReportService.class);
RunRequest runRequest = new RunRequest();
runRequest.setTestId(request.getTestId());