axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r817965 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
Date Wed, 23 Sep 2009 05:11:35 GMT
Author: amilas
Date: Wed Sep 23 05:11:34 2009
New Revision: 817965

URL: http://svn.apache.org/viewvc?rev=817965&view=rev
Log:
fixed the issue AXIS2-4280. now axis2 does not log the appliction level faults

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java?rev=817965&r1=817964&r2=817965&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AxisEngine.java
Wed Sep 23 05:11:34 2009
@@ -211,7 +211,10 @@
             }
         }
         catch (AxisFault e) {
-            log.error(e.getMessage(), e);
+            // log the fault only if it is not an application level fault.
+            if (e.getFaultType() != Constants.APPLICATION_FAULT) {
+                log.error(e.getMessage(), e);
+            }
             msgContext.setFailureReason(e);
             flowComplete(msgContext);
             throw e;



Mime
View raw message