Parallel processor will output a stack trace if there are errors processing (and not just the message)

This commit is contained in:
nathan 2017-08-18 12:14:02 +02:00
parent c6ada706d6
commit 513169b872
1 changed files with 2 additions and 2 deletions

View File

@ -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) {