Skip to content

Commit 9c3b7ce

Browse files
pranavbholeythorat2
authored andcommitted
Log full stack when exception message is null (apache#15467)
1 parent e763047 commit 9c3b7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/apache/druid/server/QueryLifecycle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public void emitLogsAndMetrics(
347347

348348
if (e != null) {
349349
statsMap.put("exception", e.toString());
350-
if (baseQuery.context().isDebug()) {
350+
if (baseQuery.context().isDebug() || e.getMessage() == null) {
351351
log.warn(e, "Exception while processing queryId [%s]", baseQuery.getId());
352352
} else {
353353
log.noStackTrace().warn(e, "Exception while processing queryId [%s]", baseQuery.getId());

0 commit comments

Comments
 (0)