This commit is contained in:
Redkale
2017-02-15 20:56:28 +08:00
parent 9eee3bfa58
commit fc6b5cb458

View File

@@ -156,7 +156,8 @@ public class LogFileHandler extends Handler {
}
logstream = null;
}
if (unusual != null && logunusualstream != null) {
}
if (unusual != null && changeday && logunusualstream != null) {
logunusualstream.close();
if (limit > 0 && limit <= logunusuallength.get()) {
for (int i = Math.min(count - 2, logunusualindex.get() - 1); i > 0; i--) {
@@ -167,7 +168,6 @@ public class LogFileHandler extends Handler {
}
logunusualstream = null;
}
}
if (logstream == null) {
logindex.incrementAndGet();
java.time.LocalDate date = LocalDate.now();