tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1558307 - /tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java
Date Wed, 15 Jan 2014 06:38:55 GMT
Author: rmannibucau
Date: Wed Jan 15 06:38:54 2014
New Revision: 1558307

URL: http://svn.apache.org/r1558307
Log:
logging exclusion in debug mode

Modified:
    tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java?rev=1558307&r1=1558306&r2=1558307&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/config/NewLoaderLogic.java
Wed Jan 15 06:38:54 2014
@@ -221,6 +221,18 @@ public class NewLoaderLogic {
         // reinit the filter
         filter = null;
         getFilter();
+
+        logExclusions(exclusionArray);
+    }
+
+    private static void logExclusions(final String[] exclusionArray) {
+        if (logger.isDebugEnabled()) {
+            logger.debug("Exclusion prefixes: [");
+            for (final String ex : exclusionArray) {
+                logger.debug("-" + ex);
+            }
+            logger.debug("]");
+        }
     }
 
     public static String[] getExclusions() {
@@ -272,7 +284,11 @@ public class NewLoaderLogic {
 
         getFilter(); // ensure filter is initialized
 
-        return excludes.toArray(new String[excludes.size()]);
+        final String[] asArray = excludes.toArray(new String[excludes.size()]);
+
+        logExclusions(asArray);
+
+        return asArray;
     }
 
     @SuppressWarnings("unchecked")



Mime
View raw message