You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2020/10/04 14:57:21 UTC

[openmeetings] branch master updated: [OPENMEETINGS-2469] tests should produce less warnings and errors

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c55afd  [OPENMEETINGS-2469] tests should produce less warnings and errors
8c55afd is described below

commit 8c55afd7879e7871c3c8914ad1dfe22bec64b2c2
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Sun Oct 4 21:57:04 2020 +0700

    [OPENMEETINGS-2469] tests should produce less warnings and errors
---
 .../main/java/org/apache/openmeetings/util/OMContextListener.java    | 5 +----
 pom.xml                                                              | 1 +
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java b/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java
index 7c48225..aff5364 100644
--- a/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java
+++ b/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java
@@ -28,7 +28,6 @@ import org.slf4j.LoggerFactory;
 
 import ch.qos.logback.classic.LoggerContext;
 import ch.qos.logback.classic.joran.JoranConfigurator;
-import ch.qos.logback.core.util.StatusPrinter;
 
 public class OMContextListener implements ServletContextListener {
 	private static final String LOG_DIR_PROP = "current_openmeetings_log_dir";
@@ -62,10 +61,8 @@ public class OMContextListener implements ServletContextListener {
 				}
 			}
 		} catch (Exception e) {
-			e.printStackTrace();
-			// StatusPrinter will handle this
+			// no-op
 		}
-		StatusPrinter.printInCaseOfErrorsOrWarnings(context);
 	}
 
 	private static String pathToName(ServletContextEvent event) {
diff --git a/pom.xml b/pom.xml
index f390471..376727f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -896,6 +896,7 @@
 						<excludes>
 							<exclude/>
 						</excludes>
+						<argLine>--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED</argLine>
 					</configuration>
 				</plugin>
 				<plugin>