Clean up any test failures resulting from defaulting to async logging, reenable shutdown hook

This commit is contained in:
erick 2019-03-05 14:10:36 -08:00
parent 558c515bf3
commit 5f91670a49

View File

@ -137,12 +137,11 @@ public final class StartupLoggingUtils {
*/ */
@SuppressForbidden(reason = "Legitimate log4j2 access") @SuppressForbidden(reason = "Legitimate log4j2 access")
public static void shutdown() { public static void shutdown() {
if (!isLog4jActive()) {
// if (!isLog4jActive()) { logNotSupported("Not running log4j2, could not call shutdown for async logging.");
// logNotSupported("Not running log4j2, could not call shutdown for async logging."); return;
// return; }
// } LogManager.shutdown(true);
// LogManager.shutdown(true);
} }
/** /**
* Return a string representing the current static ROOT logging level * Return a string representing the current static ROOT logging level