[oak-run-commons] LoggingInitializer shutdownLogging should not shut down if not initialized
Ignore if system prop logback.configurationFile set
@@ -78,6 +78,11 @@ public class LoggingInitializer {
}
public static void shutdownLogging() {
+ //Only shutdown if init
+ if (System.getProperty(ContextInitializer.CONFIG_FILE_PROPERTY) != null) {
+ return;
+ }
+
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
context.stop();
}
