Skip to content

Commit

Permalink
Improved logging in case a vertex cannot be canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Warneke committed Jul 16, 2012
1 parent b6df6df commit 5115711
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ private void checkCancelRequestedFlag() {
final TaskCancelResult tsr = cancelTask();
if (tsr.getReturnCode() != AbstractTaskResult.ReturnCode.SUCCESS
|| tsr.getReturnCode() != AbstractTaskResult.ReturnCode.TASK_NOT_FOUND) {
LOG.error("Unable to cancel vertex " + this + ": " + tsr.getDescription());
LOG.error("Unable to cancel vertex " + this + ": " + tsr.getReturnCode().toString()
+ ((tsr.getDescription() != null) ? (" (" + tsr.getDescription() + ")") : ""));
}
}
}
Expand Down

0 comments on commit 5115711

Please sign in to comment.