log stacktrace to logfile when a task fails

This commit is contained in:
Christoph Sturm 2019-07-24 14:51:54 +02:00
parent 79a49fed3e
commit a25befb742

View file

@ -64,9 +64,8 @@ public abstract class Task<T extends Model> {
}
protected void failed(Throwable t) {
t.printStackTrace();
appendExceptionToErrorMessage(t);
failed();
log.error(errorMessage, t);
taskHandler.handleErrorMessage(errorMessage);
}
protected void failed() {