优化corn表达式解析失败后退出无任何日志提示问题

This commit is contained in:
zengqiao
2022-01-19 20:23:18 +08:00
parent 3b0c208eff
commit 4f3c1ad9b6
2 changed files with 4 additions and 6 deletions

View File

@@ -80,10 +80,9 @@ public abstract class AbstractScheduledTask<E extends Comparable> implements Sch
return true;
}
LOGGER.error("modify scheduledCron failed, format invalid, scheduledName:{} scheduledCron:{}."
, scheduledName, scheduledCron);
LOGGER.error("modify scheduledCron failed, format invalid, scheduledName:{} scheduledCron:{}.", scheduledName, scheduledCron);
if (existIfIllegal) {
System.exit(0);
throw new UnsupportedOperationException(String.format("scheduledName:%s scheduledCron:%s format invalid", scheduledName, scheduledCron));
}
return false;
}