File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ private static CronExpression getSchedule(final String expression) {
147
147
}
148
148
149
149
private void rollover () {
150
- manager .rollover (cronExpression .getPrevFireTime (new Date ()).getTime (), lastRollDate .getTime ());
150
+ Date rollTime = future != null ? future .getFireTime () : new Date ();
151
+ manager .rollover (cronExpression .getPrevFireTime (rollTime ).getTime (), lastRollDate .getTime ());
151
152
if (future != null ) {
152
153
lastRollDate = future .getFireTime ();
153
154
}
Original file line number Diff line number Diff line change 201
201
Fixes incorrect constructor call in LocalizedMessageFactory.
202
202
</action >
203
203
</release >
204
- <release version =" 2.19.1" date =" TBD" description =" GA Release 2.19.1" >
204
+ <release version =" 2.20.0" date =" TBD" description =" GA Release 2.20.0" >
205
+ <action issue =" LOG4J2-3357" dev =" rgoers" type =" fix" >
206
+ Use time trigger was expected to fire instead of current time.
207
+ </action >
205
208
<action issue =" LOG4J2-2297" dev =" rgoers" type =" fix" >
206
209
Allow java.sql.Time objects to format properly in MapMessages.
207
210
</action >
You can’t perform that action at this time.
0 commit comments