Allow empty files to rollover. Should fix intermittent test failures
@@ -127,9 +127,6 @@ public final class TimeBasedTriggeringPolicy extends AbstractTriggeringPolicy {
*/
@Override
public boolean isTriggeringEvent(final LogEvent event) {
- if (manager.getFileSize() == 0) {
- return false;
- }
final long nowMillis = event.getTimeMillis();
if (nowMillis >= nextRolloverMillis) {
nextRolloverMillis = ThreadLocalRandom.current().nextLong(0, 1 + maxRandomDelayMillis)
