mirror of
https://github.com/apache/lucene.git
synced 2025-02-11 04:25:40 +00:00
Clean up any test failures resulting from defaulting to async logging, reenable shutdown hook
This commit is contained in:
parent
558c515bf3
commit
5f91670a49
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user