fix(定时任务):【github】定时任务初始化日志输出
This commit is contained in:
parent
4ed5027367
commit
7ffe2e72f4
|
@ -134,7 +134,7 @@ public class ScheduleService {
|
|||
Schedules.forEach(schedule -> {
|
||||
try {
|
||||
if (schedule.getEnable()) {
|
||||
LogUtil.error("初始化任务:" + JSON.toJSONString(schedule));
|
||||
LogUtil.info("初始化任务:" + JSON.toJSONString(schedule));
|
||||
scheduleManager.addOrUpdateCronJob(new JobKey(schedule.getKey(), schedule.getGroup()),
|
||||
new TriggerKey(schedule.getKey(), schedule.getGroup()), Class.forName(schedule.getJob()), schedule.getValue(),
|
||||
scheduleManager.getDefaultJobDataMap(schedule.getResourceId(), schedule.getValue(), schedule.getUserId()));
|
||||
|
|
Loading…
Reference in New Issue