Author: sshyrkov
Date: Fri Nov  2 18:40:47 2007
New Revision: 19039

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D19039&repname=
=3Djahia
Log:
Check for logger.isDebugEnabled() added

Modified:
    branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/java/org/jahia/params/Proces=
singContext.java

Modified: branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/java/org/jahia/params/=
ProcessingContext.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-INCLUD=
E-TAG-BRANCH/core/src/java/org/jahia/params/ProcessingContext.java&rev=3D19=
039&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/java/org/jahia/params/Proces=
singContext.java (original)
+++ branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/java/org/jahia/params/Proces=
singContext.java Fri Nov  2 18:40:47 2007
@@ -1205,7 +1205,7 @@
                                             curSetting.getCode());
                             firstSiteActiveLanguage =3D false;
                         }
-                    } else {
+                    } else if (logger.isDebugEnabled()) {
                         logger.debug("Not adding language "
                                 + curSetting.getCode()
                                 + " because it is currently deactivated.");
@@ -1422,9 +1422,11 @@
                     final String fakeStaticName =3D reqPathInfo
                             .substring(lastSlash + 1);
                     reqPathInfo =3D reqPathInfo.substring(0, lastSlash);
-                    logger.debug("Removed fake static ending. pathInfo=3D["
+                    if (logger.isDebugEnabled()) {
+                        logger.debug("Removed fake static ending. pathInfo=
=3D["
                             + reqPathInfo + "] fakeEnding=3D[" + fakeStati=
cName
                             + "]");
+                    }
                 }
             }
 =

@@ -1864,8 +1866,10 @@
                 }
 =

             }
-            logger.debug("Path params is [" + pathParamsAsString + "]");
-        } else {
+            if (logger.isDebugEnabled()) {
+                logger.debug("Path params is [" + pathParamsAsString + "]"=
);
+            }
+        } else if (logger.isDebugEnabled()) {
             logger.debug("Path params is empty");
         }
 =

@@ -1885,8 +1889,10 @@
                 }
                 queryParamsAsString.append(name).append("=3D").append(valu=
e);
             }
-            logger.debug("Query params is [" + queryParamsAsString + "]");
-        } else {
+            if (logger.isDebugEnabled()) {
+                logger.debug("Query params is [" + queryParamsAsString + "=
]");
+            }
+        } else if (logger.isDebugEnabled()) {
             logger.debug("Query params is empty");
         }
 =

@@ -2612,12 +2618,16 @@
         if (pathInfo !=3D null) {
             pathInfo =3D pathInfo.toLowerCase();
             String appid =3D "/" + APPUNIQUE_ID_PARAMETER.toLowerCase() + =
"/";
-            logger.debug("Path Info: " + pathInfo);
-            logger.debug("appid : " + appid);
+            if (logger.isDebugEnabled()) {
+                logger.debug("Path Info: " + pathInfo);
+                logger.debug("appid : " + appid);
+            }
             isPortletRequest =3D pathInfo.indexOf(appid) > -1;
         }
 =

-        logger.debug("Request is a portlet request? " + isPortletRequest);
+        if (logger.isDebugEnabled()) {
+            logger.debug("Request is a portlet request? " + isPortletReque=
st);
+        }
         return isPortletRequest;
 =

     }
@@ -3260,8 +3270,10 @@
                     setEntryLoadRequest(new EntryLoadRequest(
                             EntryLoadRequest.VERSIONED_WORKFLOW_STATE, ver,
                             getLocales()));
-                    logger.debug("Using entry load request specified : "
+                    if (logger.isDebugEnabled()) {
+                        logger.debug("Using entry load request specified :=
 "
                             + getEntryLoadRequest());
+                    }
                 } catch (NumberFormatException nfe) {
                     logger.debug("VersionID format exception", nfe);
                 }

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to