cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clecl...@apache.org
Subject svn commit: r894197 - in /cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters: CounterRepository.java MessageHandlingTimeRecorder.java
Date Mon, 28 Dec 2009 16:35:28 GMT
Author: cleclerc
Date: Mon Dec 28 16:35:27 2009
New Revision: 894197

URL: http://svn.apache.org/viewvc?rev=894197&view=rev
Log:
Add logs to ease debugging.

Modified:
    cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
    cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java

Modified: cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java?rev=894197&r1=894196&r2=894197&view=diff
==============================================================================
--- cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
(original)
+++ cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/CounterRepository.java
Mon Dec 28 16:35:27 2009
@@ -88,6 +88,9 @@
             counters.put(on, counter);
         }
         counter.increase(mhtr);        
+        if (LOG.isLoggable(Level.FINE)) {
+            LOG.fine("Increase counter " + on + " with " + mhtr);
+        }
     }
     
     //find a counter

Modified: cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java?rev=894197&r1=894196&r2=894197&view=diff
==============================================================================
--- cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
(original)
+++ cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/counters/MessageHandlingTimeRecorder.java
Mon Dec 28 16:35:27 2009
@@ -70,4 +70,14 @@
     public void setFaultMode(FaultMode faultMode) {
         this.faultMode = faultMode;
     }
+    
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append("MessageHandlingTimeRecorder@").append(Integer.toHexString(hashCode())).append("[");
+        sb.append("beginTime: ").append(beginTime).append(", ");
+        sb.append("endTime: ").append(endTime).append(", ");
+        sb.append("faultMode: ").append(faultMode).append("]");
+        return sb.toString();
+    }
 }



Mime
View raw message