Apache Solr open-source search software
Clean up any test failures resulting from defaulting to async logging, reenable shutdown hook
erick5f91670a4962
diff --git a/solr/core/src/java/org/apache/solr/util/StartupLoggingUtils.java b/solr/core/src/java/org/apache/solr/util/StartupLoggingUtils.javaindex 67ae692e106..8181ae5b8f1 100644--- a/solr/core/src/java/org/apache/solr/util/StartupLoggingUtils.java+++ b/solr/core/src/java/org/apache/solr/util/StartupLoggingUtils.java@@ -137,12 +137,11 @@ public final class StartupLoggingUtils {*/@SuppressForbidden(reason = "Legitimate log4j2 access")public static void shutdown() {--// if (!isLog4jActive()) {-// logNotSupported("Not running log4j2, could not call shutdown for async logging.");-// return;-// }-// LogManager.shutdown(true);+ if (!isLog4jActive()) {+ logNotSupported("Not running log4j2, could not call shutdown for async logging.");+ return;+ }+ LogManager.shutdown(true);}/*** Return a string representing the current static ROOT logging level