未验证 提交 de61d65a 编写于 作者: K Kirs 提交者: GitHub

[Task]fix business log using error (#6538)

上级 52a550b6
......@@ -98,11 +98,6 @@ public class TaskExecuteThread implements Runnable, Delayed {
*/
private TaskExecutionContextCacheManager taskExecutionContextCacheManager;
/**
* task logger
*/
private Logger taskLogger;
/**
* alert client server
*/
......@@ -143,7 +138,7 @@ public class TaskExecuteThread implements Runnable, Delayed {
// check if the OS user exists
if (!OSUtils.getUserList().contains(taskExecutionContext.getTenantCode())) {
String errorLog = String.format("tenantCode: %s does not exist", taskExecutionContext.getTenantCode());
taskLogger.error(errorLog);
logger.error(errorLog);
responseCommand.setStatus(ExecutionStatus.FAILURE.getCode());
responseCommand.setEndTime(new Date());
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册