Log full stack when exception message is null (#15467)

This commit is contained in:
Pranav 2023-11-30 16:47:37 -08:00 committed by GitHub
parent f8bd3b0b7e
commit 9f3b26676d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());