diff --git a/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java b/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java index 5ff044f65641b..c8485814b5957 100644 --- a/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java +++ b/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java @@ -123,7 +123,11 @@ public Iterable 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); }