cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sea...@apache.org
Subject svn commit: r736343 - /cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
Date Wed, 21 Jan 2009 17:03:47 GMT
Author: seanoc
Date: Wed Jan 21 09:03:47 2009
New Revision: 736343

URL: http://svn.apache.org/viewvc?rev=736343&view=rev
Log:
CXF-1981 Inconsistent use of logger delegation via LogUtils

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java?rev=736343&r1=736342&r2=736343&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java Wed Jan 21
09:03:47 2009
@@ -239,27 +239,23 @@
                     FaultMode mode = message.get(FaultMode.class);
                     if (mode == FaultMode.CHECKED_APPLICATION_FAULT) {
                         if (LOG.isLoggable(Level.FINE)) { 
-                            LogUtils.log(LOG, Level.FINE,
-                                         "Application has thrown exception, unwinding now",
ex);
+                            LOG.fine("Application has thrown exception, unwinding now " +
ex.getMessage());
                         } else if (LOG.isLoggable(Level.INFO)) {
                             Throwable t = ex;
                             if (ex instanceof Fault
                                 && ex.getCause() != null) {
                                 t = ex.getCause();
-                            }                            
-                            
-                            LogUtils.log(LOG, Level.INFO,
-                                         "Application has thrown exception, unwinding now:
"
+                            }  
+                                       
+                            LOG.info("Application has thrown exception, unwinding now: "
                                          + t.getClass().getName() 
-                                         + ": " + ex.getMessage());
+                                         + ": " + ex.getMessage());          
                         }
                     } else if (LOG.isLoggable(Level.INFO)) {
                         if (mode == FaultMode.UNCHECKED_APPLICATION_FAULT) {
-                            LogUtils.log(LOG, Level.INFO,
-                                         "Application has thrown exception, unwinding now",
ex);
+                            LOG.info("Application has thrown exception, unwinding now " +
ex.getMessage());
                         } else {
-                            LogUtils.log(LOG, Level.INFO,
-                                         "Interceptor has thrown exception, unwinding now",
ex);
+                            LOG.info("Interceptor has thrown exception, unwinding now " +
ex.getMessage());
                         }
                     }
 



Mime
View raw message