This is an automated email from the ASF dual-hosted git repository.

soumyava pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f3b26676d3 Log full stack when exception message is null (#15467)
9f3b26676d3 is described below

commit 9f3b26676d30f90599a7d55e43549617e0cee082
Author: Pranav <[email protected]>
AuthorDate: Thu Nov 30 16:47:37 2023 -0800

    Log full stack when exception message is null (#15467)
---
 server/src/main/java/org/apache/druid/server/QueryLifecycle.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/druid/server/QueryLifecycle.java 
b/server/src/main/java/org/apache/druid/server/QueryLifecycle.java
index 8f0deafac2b..0f46e5da4d9 100644
--- a/server/src/main/java/org/apache/druid/server/QueryLifecycle.java
+++ b/server/src/main/java/org/apache/druid/server/QueryLifecycle.java
@@ -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());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to