Skip to content

Commit

Permalink
Do not log exceptions twice
Browse files Browse the repository at this point in the history
Change-Id: Ia9c1e604c3a558948d417b25169714034cb21e7f
  • Loading branch information
EcljpseB0T committed May 17, 2022
1 parent bc15a82 commit 17d8b45
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ public void execute(TaskingLog log, @Optional @Service TaskProgressEstimationSer
// not throw an exception
IStatus taskStatus = taskCtx.get(IStatus.class);
if (taskStatus.getSeverity() >= IStatus.ERROR) {
log.error("Task aborted with status " + taskStatus);
if (taskStatus.getException() != null && taskStatus.getSeverity() != IStatus.CANCEL) {
// Already logged in
// org.eclipse.tea.core.internal.listeners.LifecycleAnnouncer#finishTask
} else {
log.error("Task aborted with status " + taskStatus);
}
break;
}
}
Expand Down

0 comments on commit 17d8b45

Please sign in to comment.