GChuf commented on code in PR #4440:
URL: https://github.com/apache/logging-log4j2/pull/4440#discussion_r4573449551
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/CronTriggeringPolicy.java:
##########
@@ -74,9 +74,10 @@ public void initialize(final RollingFileManager aManager) {
if (checkOnStartup
&& lastRollForFile != null
&& lastRegularRoll != null
- && lastRollForFile.before(lastRegularRoll)) {
+ && lastRollForFile.before(lastRegularRoll)
+ && fileTime != lastRegularRoll.getTime()) {
Review Comment:
A new test was added as well to test your scenario
(testEvaluateOnStartupArchivesFileCreatedAtFireTimeUnderItsOwnPeriod)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]