Parallel processor will output a stack trace if there are errors processing (and not just the message)
This commit is contained in:
parent
c6ada706d6
commit
513169b872
@ -95,10 +95,10 @@ class ParallelProcessor<T extends Runnable> {
|
|||||||
workComplete(work);
|
workComplete(work);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (logger != null) {
|
if (logger != null) {
|
||||||
logger.error("Error during execution of work!", t.getMessage());
|
logger.error("Error during execution of work!", t);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
System.err.println("Error during execution of work! " + OS.getExceptionMessage(t));
|
t.printStackTrace();
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (taken instanceof Runnable) {
|
if (taken instanceof Runnable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user