refactor: 记录容器停止失败的日志,并返回报错信息

This commit is contained in:
Captain.B 2020-07-17 15:32:54 +08:00
parent cf216d1d84
commit 2850017733
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ public class DockerTestEngine extends AbstractEngine {
try {
restTemplateWithTimeOut.getForObject(uri, String.class);
} catch (Exception e) {
LogUtil.error("stop load test fail... " + testId);
MSException.throwException(Translator.get("container_delete_fail"));
LogUtil.error("stop load test fail... " + testId, e);
MSException.throwException(Translator.get("container_delete_fail") + ", Error: " + e.getMessage());
}
});
}