axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robins...@apache.org
Subject svn commit: r528092 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java
Date Thu, 12 Apr 2007 19:08:40 GMT
Author: robinsona
Date: Thu Apr 12 12:08:39 2007
New Revision: 528092

URL: http://svn.apache.org/viewvc?view=rev&rev=528092
Log:
axis2-2519 add logging control to ServiceContext

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java?view=diff&rev=528092&r1=528091&r2=528092
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ServiceContext.java
Thu Apr 12 12:08:39 2007
@@ -26,6 +26,7 @@
 import org.apache.axis2.engine.AxisConfiguration;
 import org.apache.axis2.engine.ListenerManager;
 import org.apache.axis2.i18n.Messages;
+import org.apache.axis2.util.LoggingControl;
 import org.apache.axis2.util.MetaDataEntry;
 import org.apache.axis2.util.ObjectStateUtils;
 import org.apache.commons.logging.Log;
@@ -413,8 +414,10 @@
         needsToBeReconciled = true;
 
         // trace point
-        log.trace(myClassName + ":readExternal():  BEGIN  bytes available in stream [" +
+        if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
+            log.trace(myClassName + ":readExternal():  BEGIN  bytes available in stream ["
+
                 in.available() + "]  ");
+        }
 
         //---------------------------------------------------------
         // object level identifiers
@@ -449,8 +452,10 @@
                 ObjectStateUtils.readString(in, myClassName + ".logCorrelationIDString");
 
         // trace point
-        log.trace(myClassName + ":readExternal():  reading input stream for [" +
+        if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
+            log.trace(myClassName + ":readExternal():  reading input stream for [" +
                 logCorrelationIDString + "]  ");
+        }
 
         // EndpointReference targetEPR
         targetEPR = (EndpointReference) ObjectStateUtils.readObject(in, "ServiceContext.targetEPR");
@@ -715,8 +720,10 @@
      */
     private void checkActivateWarning(String methodname) {
         if (needsToBeReconciled) {
-            log.warn(logCorrelationIDString + ":" + methodname + "(): ****WARNING**** " +
+            if (LoggingControl.debugLoggingAllowed && log.isWarnEnabled()) {
+                log.warn(logCorrelationIDString + ":" + methodname + "(): ****WARNING****
" +
                     myClassName + ".activate(configurationContext) needs to be invoked.");
+            }
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message