[JENKINS-64151] Set a default file size rotation of AsyncPeriodicWork… (#7376)

Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
Allan BurdajewiczandAlexander Brandes authored and GitHub committed 2022-11-19 22:23:16 +00:00
1 parent 4a3dc3b1bb
commit df89aa6855
2 files changed
+2 -2

No files matched your search

@@ -64,7 +64,7 @@ public abstract class AsyncAperiodicWork extends AperiodicWork {
* @since 1.651
*/
private static final long LOG_ROTATE_SIZE = SystemProperties.getLong(AsyncAperiodicWork.class.getName() + ".logRotateSize",
-1L);
10485760L);
/**
* The number of milliseconds (since startup or previous rotation) after which to try and rotate the log file.
*
@@ -45,7 +45,7 @@ public abstract class AsyncPeriodicWork extends PeriodicWork {
*
* @since 1.651
*/
private static final long LOG_ROTATE_SIZE = SystemProperties.getLong(AsyncPeriodicWork.class.getName() + ".logRotateSize", -1L);
private static final long LOG_ROTATE_SIZE = SystemProperties.getLong(AsyncPeriodicWork.class.getName() + ".logRotateSize", 10485760L);
/**
* The number of milliseconds (since startup or previous rotation) after which to try and rotate the log file.
*