jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1225673 - /jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java
Date Thu, 29 Dec 2011 22:19:19 GMT
Author: pmouawad
Date: Thu Dec 29 22:19:19 2011
New Revision: 1225673

URL: http://svn.apache.org/viewvc?rev=1225673&view=rev
Log:
Added warning when parsing fails

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java?rev=1225673&r1=1225672&r2=1225673&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java Thu Dec
29 22:19:19 2011
@@ -29,6 +29,8 @@ import org.apache.jmeter.testelement.pro
 import org.apache.jmeter.testelement.property.IntegerProperty;
 import org.apache.jmeter.testelement.property.JMeterProperty;
 import org.apache.jmeter.testelement.property.StringProperty;
+import org.apache.jorphan.logging.LoggingManager;
+import org.apache.log.Logger;
 
 /**
  * This class represents a controller that can control the number of times that
@@ -44,6 +46,7 @@ public class ThroughputController extend
 
     private static final long serialVersionUID = 233L;
 
+    private static final Logger log = LoggingManager.getLoggerForClass();
     public static final int BYNUMBER = 0;
 
     public static final int BYPERCENT = 1;
@@ -138,6 +141,7 @@ public class ThroughputController extend
             try {
                 retVal = Integer.parseInt(prop.getStringValue());
             } catch (NumberFormatException e) {
+            	log.warn("Error parsing "+prop.getStringValue(),e);
             }
         }
         return retVal;
@@ -164,6 +168,7 @@ public class ThroughputController extend
             try {
                 retVal = Float.parseFloat(prop.getStringValue());
             } catch (NumberFormatException e) {
+            	log.warn("Error parsing "+prop.getStringValue(),e);
             }
         }
         return retVal;
@@ -257,11 +262,14 @@ public class ThroughputController extend
     }
 
     public void testEnded() {
+    	// NOOP
     }
 
     public void testEnded(String host) {
+    	// NOOP
     }
 
     public void testIterationStart(LoopIterationEvent event) {
+    	// NOOP
     }
 }



Mime
View raw message