Skip to content

Commit

Permalink
Print stack trace in case of debug in ChainedExecutionQueryRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavbhole committed Sep 20, 2023
1 parent fa4d4b7 commit dffab78
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ public Iterable<T> call()
throw e;
}
catch (Exception e) {
log.noStackTrace().error(e, "Exception with one of the sequences!");
if (query.context().isDebug()) {
log.error(e, "Exception with one of the sequences!");
} else {
log.noStackTrace().error(e, "Exception with one of the sequences!");
}
Throwables.propagateIfPossible(e);
throw new RuntimeException(e);
}
Expand Down

0 comments on commit dffab78

Please sign in to comment.