提交 f27f2037 编写于 作者: D Daniel Beck

[FIXED JENKINS-22840] Make ring buffer size configurable

上级 dcfeaf3c
......@@ -35,12 +35,14 @@ import java.util.logging.LogRecord;
*/
public class RingBufferLogHandler extends Handler {
private static final int DEFAULT_RING_BUFFER_SIZE = Integer.getInteger(RingBufferLogHandler.class.getName() + ".defaultSize", 256);
private int start = 0;
private final LogRecord[] records;
private volatile int size = 0;
public RingBufferLogHandler() {
this(256);
this(DEFAULT_RING_BUFFER_SIZE);
}
public RingBufferLogHandler(int ringSize) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册