fix(定时任务):【github】定时任务初始化日志输出

This commit is contained in:
wenyann 2021-04-01 17:54:21 +08:00 committed by 刘瑞斌
parent 5832b618a5
commit 0979d8449c
1 changed files with 1 additions and 1 deletions

View File

@ -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()));