[exo-jcr-commits] exo-jcr SVN: r5668 - kernel/branches/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Feb 20 07:00:01 EST 2012


Author: andrew.plotnikov
Date: 2012-02-20 07:00:00 -0500 (Mon, 20 Feb 2012)
New Revision: 5668

Modified:
   kernel/branches/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container/PropertyConfigurator.java
Log:
EXOJCR-1768: Fixed wrong debug logging in PropertyConfigurator

Modified: kernel/branches/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container/PropertyConfigurator.java
===================================================================
--- kernel/branches/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container/PropertyConfigurator.java	2012-02-20 11:58:54 UTC (rev 5667)
+++ kernel/branches/2.4.x/exo.kernel.container/src/main/java/org/exoplatform/container/PropertyConfigurator.java	2012-02-20 12:00:00 UTC (rev 5668)
@@ -88,8 +88,11 @@
          ValueParam pathParam = params.getValueParam("properties.url");
          if (pathParam != null)
          {
-            LOG.debug("Using file path " + path + " found from configuration");
             path = pathParam.getValue();
+            if (LOG.isDebugEnabled())
+            {
+               LOG.debug("Using file path " + path + " found from configuration");
+            }
          }
       }
 
@@ -97,8 +100,11 @@
       String systemPath = PropertyManager.getProperty(PropertyManager.PROPERTIES_URL);
       if (systemPath != null)
       {
-         LOG.debug("Using file path " + path + " found from system properties");
          path = systemPath;
+         if (LOG.isDebugEnabled())
+         {
+            LOG.debug("Using file path " + path + " found from system properties");
+         }
       }
 
       //



More information about the exo-jcr-commits mailing list