You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2007/09/11 23:50:07 UTC
svn commit: r574706 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
Author: robinsona
Date: Tue Sep 11 14:50:06 2007
New Revision: 574706
URL: http://svn.apache.org/viewvc?rev=574706&view=rev
Log:
Change the warning message being traced to the debug trace level
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java?rev=574706&r1=574705&r2=574706&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java Tue Sep 11 14:50:06 2007
@@ -65,6 +65,8 @@
private static final String myClassName = "OperationContext";
+ private boolean debugEnabled = log.isDebugEnabled();
+
/**
* An ID which can be used to correlate operations on an instance of
* this object in the log files
@@ -237,8 +239,8 @@
* @return Returns the axisOperation.
*/
public AxisOperation getAxisOperation() {
- if (needsToBeReconciled && !suppressWarnings) {
- log.warn(logCorrelationIDString +
+ if (needsToBeReconciled && !suppressWarnings && debugEnabled) {
+ log.debug(logCorrelationIDString +
":getAxisOperation(): ****WARNING**** OperationContext.activate(configurationContext) needs to be invoked.");
}
@@ -931,8 +933,10 @@
// see if the activation has been done
if (needsToBeReconciled) {
// nope, need to do the activation first
- log.trace(logCorrelationIDString +
- ":restoreMessageContext(): *** WARNING : need to invoke activate() prior to restoring the MessageContext to the list.");
+ if (debugEnabled) {
+ log.debug(logCorrelationIDString +
+ ":restoreMessageContext(): *** WARNING : need to invoke activate() prior to restoring the MessageContext to the list.");
+ }
return;
}
@@ -944,9 +948,11 @@
String msgID = msg.getMessageID();
if (msgID == null) {
- // can't identify message context
- log.trace(logCorrelationIDString +
- ":restoreMessageContext(): *** WARNING : MessageContext does not have a message ID.");
+ if (debugEnabled) {
+ // can't identify message context
+ log.debug(logCorrelationIDString +
+ ":restoreMessageContext(): *** WARNING : MessageContext does not have a message ID.");
+ }
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org