From b7965d22657f869e13dcf2fdabe1d4c11ea8d631 Mon Sep 17 00:00:00 2001 From: mjok Date: Fri, 25 Sep 2020 14:08:01 +0300 Subject: [PATCH] fixing too low initial log message buffer --- .../remora/core/utils/RemoraLoggingProvider.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/remora-core/src/main/java/com/jkoolcloud/remora/core/utils/RemoraLoggingProvider.java b/remora-core/src/main/java/com/jkoolcloud/remora/core/utils/RemoraLoggingProvider.java index 60669c4..b44d299 100644 --- a/remora-core/src/main/java/com/jkoolcloud/remora/core/utils/RemoraLoggingProvider.java +++ b/remora-core/src/main/java/com/jkoolcloud/remora/core/utils/RemoraLoggingProvider.java @@ -37,7 +37,7 @@ public class RemoraLoggingProvider implements LoggingProvider { private static Semaphore semaphore = new Semaphore(-1); private static ArrayList instances = new ArrayList<>(); private final static ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0, TimeUnit.MILLISECONDS, - new ArrayBlockingQueue(1000) { + new ArrayBlockingQueue(5000) { @Override public Runnable take() throws InterruptedException { semaphore.acquire(); @@ -49,11 +49,6 @@ public RemoraLoggingProvider() { instances.add(this); } - public void reload() throws InterruptedException, ReflectiveOperationException { - realProvider.shutdown(); - realProvider = new TinylogLoggingProvider(); - } - @Override public ContextProvider getContextProvider() { return realProvider.getContextProvider();