mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
StaticLog rename to LogUtil
This commit is contained in:
@@ -24,7 +24,7 @@ import org.dromara.hutool.cron.pattern.CronPattern;
|
||||
import org.dromara.hutool.cron.task.InvokeTask;
|
||||
import org.dromara.hutool.cron.task.RunnableTask;
|
||||
import org.dromara.hutool.cron.task.Task;
|
||||
import org.dromara.hutool.log.StaticLog;
|
||||
import org.dromara.hutool.log.LogUtil;
|
||||
import org.dromara.hutool.setting.Setting;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -221,7 +221,7 @@ public class Scheduler implements Serializable {
|
||||
jobClass = group + CharUtil.DOT + jobClass;
|
||||
}
|
||||
final String pattern = entry.getValue();
|
||||
StaticLog.debug("Load job: {} {}", pattern, jobClass);
|
||||
LogUtil.debug("Load job: {} {}", pattern, jobClass);
|
||||
try {
|
||||
// issue#I5E7BM@Gitee,自定义ID避免重复从配置文件加载
|
||||
schedule("id_" + jobClass, pattern, new InvokeTask(jobClass));
|
||||
|
@@ -13,7 +13,7 @@
|
||||
package org.dromara.hutool.cron.listener;
|
||||
|
||||
import org.dromara.hutool.cron.TaskExecutor;
|
||||
import org.dromara.hutool.log.StaticLog;
|
||||
import org.dromara.hutool.log.LogUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
@@ -95,7 +95,7 @@ public class TaskListenerManager implements Serializable {
|
||||
listener.onFailed(executor, exception);
|
||||
}
|
||||
}else{
|
||||
StaticLog.error(exception, exception.getMessage());
|
||||
LogUtil.error(exception, exception.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
package org.dromara.hutool.cron.timingwheel;
|
||||
|
||||
import org.dromara.hutool.log.StaticLog;
|
||||
import org.dromara.hutool.log.LogUtil;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@@ -108,7 +108,7 @@ public class TimingWheel {
|
||||
//当前时间轮可以容纳该任务 加入时间槽
|
||||
final long virtualId = expiration / tickMs;
|
||||
final int index = (int) (virtualId % wheelSize);
|
||||
StaticLog.debug("tickMs: {} ------index: {} ------expiration: {}", tickMs, index, expiration);
|
||||
LogUtil.debug("tickMs: {} ------index: {} ------expiration: {}", tickMs, index, expiration);
|
||||
|
||||
final TimerTaskList timerTaskList = timerTaskLists[index];
|
||||
timerTaskList.addTask(timerTask);
|
||||
|
Reference in New Issue
Block a user