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

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

commit a329a39d6500d4e3c204ea13c6918cec0c2d4484
Author: Clint Wylie <[email protected]>
AuthorDate: Fri Dec 10 16:04:43 2021 -0800

    set log4j2.is.webapp to false if not set so that shutdown hooks are run
---
 .../main/java/org/apache/druid/cli/Log4JShutdownPropertyChecker.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/services/src/main/java/org/apache/druid/cli/Log4JShutdownPropertyChecker.java 
b/services/src/main/java/org/apache/druid/cli/Log4JShutdownPropertyChecker.java
index 2d02670..fde3c5d 100644
--- 
a/services/src/main/java/org/apache/druid/cli/Log4JShutdownPropertyChecker.java
+++ 
b/services/src/main/java/org/apache/druid/cli/Log4JShutdownPropertyChecker.java
@@ -32,5 +32,8 @@ public class Log4JShutdownPropertyChecker implements 
PropertyChecker
     if (!properties.containsKey("log4j.shutdownHookEnabled")) {
       properties.setProperty("log4j.shutdownHookEnabled", "true");
     }
+    if (!properties.containsKey("log4j2.is.webapp")) {
+      properties.setProperty("log4j2.is.webapp", "false");
+    }
   }
 }

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

Reply via email to