fix(sj_1.4.0): Job、重试日志保留天数<=1改为<1

This commit is contained in:
zhengweilin 2025-04-11 10:59:10 +08:00
parent 8d314bdcea
commit b2657fc7b1
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class JobClearLogSchedule extends AbstractSchedule implements Lifecycle {
protected void doExecute() {
try {
// 清除日志默认保存天数大于零最少保留最近一天的日志数据
if (systemProperties.getLogStorage() <= 1) {
if (systemProperties.getLogStorage() < 1) {
SnailJobLog.LOCAL.error("job clear log storage error", systemProperties.getLogStorage());
return;
}

View File

@ -86,7 +86,7 @@ public class CleanerSchedule extends AbstractSchedule implements Lifecycle {
protected void doExecute() {
try {
// 清除日志默认保存天数大于零最少保留最近一天的日志数据
if (systemProperties.getLogStorage() <= 1) {
if (systemProperties.getLogStorage() < 1) {
SnailJobLog.LOCAL.error("retry clear log storage error", systemProperties.getLogStorage());
return;
}