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
1 changed files with 5 additions and 6 deletions

View File

@ -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