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

This commit is contained in:
wenyann 2021-04-01 17:54:21 +08:00 committed by BugKing
parent 4ed5027367
commit 7ffe2e72f4
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()));