mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
优化corn表达式解析失败后退出无任何日志提示问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user