[Bug] [Task] SQL task no exception stack trace in task log (#10656)

This commit is contained in:
zhuxt2015 2022-06-29 09:57:05 +08:00 committed by caishunfeng
parent 10c295eae5
commit cb14726bdd
2 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ public class DataxTask extends AbstractTaskExecutor {
setAppIds(commandExecuteResult.getAppIds());
setProcessId(commandExecuteResult.getProcessId());
} catch (Exception e) {
logger.error("datax task error", e);
setExitStatusCode(EXIT_CODE_FAILURE);
throw e;
}

View File

@ -161,7 +161,7 @@ public class SqlTask extends AbstractTaskExecutor {
} catch (Exception e) {
setExitStatusCode(TaskConstants.EXIT_CODE_FAILURE);
logger.error("sql task error: {}", e.toString());
logger.error("sql task error", e);
throw e;
}
}