fix(sj_1.4.0): Job、重试日志保留天数<=1改为<1
This commit is contained in:
parent
8d314bdcea
commit
b2657fc7b1
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user