geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r550171 - /geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java
Date Sun, 24 Jun 2007 06:01:57 GMT
Author: djencks
Date: Sat Jun 23 23:01:56 2007
New Revision: 550171

URL: http://svn.apache.org/viewvc?view=rev&rev=550171
Log:
Quiet down logging of dependency resolution

Modified:
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java?view=diff&rev=550171&r1=550170&r2=550171
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/ConfigurationUtil.java
Sat Jun 23 23:01:56 2007
@@ -350,7 +350,9 @@
     }
 
     static void preprocessGBeanData(AbstractName configurationName, Configuration configuration,
GBeanData gbeanData) throws InvalidConfigException {
-        log.info("resolving dependencies for " + gbeanData.getAbstractName());
+        if (log.isDebugEnabled()) {
+            log.debug("resolving dependencies for " + gbeanData.getAbstractName());
+        }
         for (Iterator references = gbeanData.getReferencesNames().iterator(); references.hasNext();)
{
             String referenceName = (String) references.next();
             GReferenceInfo referenceInfo = gbeanData.getGBeanInfo().getReference(referenceName);
@@ -363,7 +365,9 @@
                 AbstractName abstractName;
                 try {
                     abstractName = configuration.findGBean(referencePatterns);
-                    log.info("referencePatterns: " + referencePatterns + " resolved to "
+ abstractName);
+                    if (log.isDebugEnabled()) {
+                        log.debug("referencePatterns: " + referencePatterns + " resolved
to " + abstractName);
+                    }
                 } catch (GBeanNotFoundException e) {
                     throw new InvalidConfigException("Unable to resolve reference \"" + referenceName
+ "\" in gbean " + gbeanData.getAbstractName() + " to a gbean matching the pattern " + referencePatterns,
e);
                 }
@@ -377,7 +381,9 @@
             AbstractName abstractName;
             try {
                 abstractName = configuration.findGBean(referencePatterns);
-                log.info("referencePatterns: " + referencePatterns + " resolved to " + abstractName);
+                if (log.isDebugEnabled()) {
+                    log.debug("referencePatterns: " + referencePatterns + " resolved to "
+ abstractName);
+                }
             } catch (GBeanNotFoundException e) {
                 throw new InvalidConfigException("Unable to resolve dependency in gbean "
+ gbeanData.getAbstractName(), e);
             }



Mime
View raw message