输出日志

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 2666f5d728
commit 48218e552c

@ -43,7 +43,7 @@ public abstract class TaskBaseService implements TaskHandler {
execute(redisKeyBO); execute(redisKeyBO);
}catch (Throwable e){ }catch (Throwable e){
e.printStackTrace(); e.printStackTrace();
log.info("任务执行失败 : ",e.getMessage()); log.info("任务执行失败 : ", e);
rollbackRedisKey(redisKeyBO); rollbackRedisKey(redisKeyBO);
} }
} }
@ -58,7 +58,7 @@ public abstract class TaskBaseService implements TaskHandler {
transactionManager.commit(status); transactionManager.commit(status);
}catch (Throwable e){ }catch (Throwable e){
e.printStackTrace(); e.printStackTrace();
log.info("任务执行失败 : ",e.getMessage()); log.info("任务执行失败 : ", e);
transactionManager.rollback(status); transactionManager.rollback(status);
rollbackRedisKey(redisKeyBO); rollbackRedisKey(redisKeyBO);
} }

Loading…
Cancel
Save