This commit is contained in:
Jörg Prante 2023-08-01 10:07:27 +02:00
parent cf71fd1d2e
commit d3140e330e
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,7 @@
package org.xbib.net.http.server.executor; package org.xbib.net.http.server.executor;
import org.xbib.net.util.ExceptionFormatter;
import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue; import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
@ -43,7 +45,6 @@ public class BaseThreadPoolExecutor extends ThreadPoolExecutor {
logger.log(Level.FINEST, () -> "after execute of " + runnable); logger.log(Level.FINEST, () -> "after execute of " + runnable);
if (terminationCause != null) { if (terminationCause != null) {
logger.log(Level.SEVERE, terminationCause.getMessage(), terminationCause); logger.log(Level.SEVERE, terminationCause.getMessage(), terminationCause);
return;
} }
} }
} }

View file

@ -15,4 +15,11 @@ public class Task<T> extends FutureTask<T> {
public Callable<T> getCallable() { public Callable<T> getCallable() {
return callable; return callable;
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
return sb.toString();
}
} }