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

This commit is contained in:
chenjianxing 2021-12-27 17:09:13 +08:00 committed by BugKing
parent fc598de402
commit 5105b4bbc3
1 changed files with 2 additions and 0 deletions

View File

@ -195,10 +195,12 @@ public class JMeterService {
String uri = String.format(BASE_URL + "/jmeter/api/start", nodeIp, port);
ResponseEntity<String> result = restTemplate.postForEntity(uri, runRequest, String.class);
if (result == null || !StringUtils.equals("SUCCESS", result.getBody())) {
LogUtil.info(result.getBody());
RemakeReportService remakeReportService = CommonBeanFactory.getBean(RemakeReportService.class);
remakeReportService.remake(runRequest, config, reportId);
}
} catch (Exception e) {
LogUtil.error(e);
RemakeReportService remakeReportService = CommonBeanFactory.getBean(RemakeReportService.class);
remakeReportService.remake(runRequest, config, reportId);
}