mirror of https://github.com/apache/druid.git
Log full stack when exception message is null (#15467)
This commit is contained in:
parent
f8bd3b0b7e
commit
9f3b26676d
|
@ -347,7 +347,7 @@ public class QueryLifecycle
|
|||
|
||||
if (e != null) {
|
||||
statsMap.put("exception", e.toString());
|
||||
if (baseQuery.context().isDebug()) {
|
||||
if (baseQuery.context().isDebug() || e.getMessage() == null) {
|
||||
log.warn(e, "Exception while processing queryId [%s]", baseQuery.getId());
|
||||
} else {
|
||||
log.noStackTrace().warn(e, "Exception while processing queryId [%s]", baseQuery.getId());
|
||||
|
|
Loading…
Reference in New Issue