You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by ji...@apache.org on 2021/12/11 02:01:22 UTC

[druid] 02/07: set log4j2.is.webapp to false if not set so that shutdown hooks are run

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 <cw...@apache.org>
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: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org