jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1225674 - /jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java
Date Thu, 29 Dec 2011 22:21:09 GMT
Author: pmouawad
Date: Thu Dec 29 22:21:09 2011
New Revision: 1225674

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

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java?rev=1225674&r1=1225673&r2=1225674&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/config/RandomVariableConfig.java Thu Dec
29 22:21:09 2011
@@ -127,7 +127,9 @@ public class RandomVariableConfig extend
                 DecimalFormat myFormatter = new DecimalFormat(format);
                 return myFormatter.format(value);
             } catch (NumberFormatException ignored) {
+            	log.warn("Exception formatting value:"+value + " at format:"+format+", using
default");
             } catch (IllegalArgumentException ignored) {
+            	log.warn("Exception formatting value:"+value + " at format:"+format+", using
default");
             }
         }
         return Long.toString(value);



Mime
View raw message