Skip to content

Commit

Permalink
moved stack trace to trace/debug level (hyperledger#6222)
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
  • Loading branch information
macfarla authored and jflo committed Dec 4, 2023
1 parent 954ca4e commit 43131da
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,16 @@ private Future<?> runWithErrorHandling(final ExecutorService executorService, fi
if (t instanceof CompletionException
|| t instanceof CancellationException
|| t instanceof AsyncOperationException) {
LOG.debug("Unhandled exception in pipeline. Aborting.", t);
LOG.trace("Unhandled exception in pipeline. Aborting.", t);
} else {
LOG.info("Unexpected exception in pipeline. Aborting.", t);
LOG.info("Unexpected exception in pipeline. Aborting.");
LOG.debug("Unexpected exception in pipeline. Aborting.", t);
}
try {
abort(t);
} catch (final Throwable t2) {
// Seems excessive but exceptions that propagate out of this method won't be logged
// because the executor just completes the future exceptionally and we never
// because the executor just completes the future exceptionally, and we never
// need to call get on it which would normally expose the error.
LOG.error("Failed to abort pipeline after error", t2);
}
Expand Down

0 comments on commit 43131da

Please sign in to comment.