Skip to content

Commit

Permalink
fixing too low initial log message buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mjok committed Sep 25, 2020
1 parent 7622212 commit b7965d2
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class RemoraLoggingProvider implements LoggingProvider {
private static Semaphore semaphore = new Semaphore(-1);
private static ArrayList<RemoraLoggingProvider> instances = new ArrayList<>();
private final static ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0, TimeUnit.MILLISECONDS,
new ArrayBlockingQueue<Runnable>(1000) {
new ArrayBlockingQueue<Runnable>(5000) {
@Override
public Runnable take() throws InterruptedException {
semaphore.acquire();
Expand All @@ -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();
Expand Down

0 comments on commit b7965d2

Please sign in to comment.