Author: sebb
Date: Thu Sep 22 09:53:22 2011
New Revision: 1174029
URL: http://svn.apache.org/viewvc?rev=1174029&view=rev
Log:
Better log message when If Controller javascript error occurs
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java?rev=1174029&r1=1174028&r2=1174029&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
(original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java
Thu Sep 22 09:53:22 2011
@@ -97,7 +97,7 @@ public class IfController extends Generi
/**
* evaluate the condition clause log error if bad condition
*/
- private static boolean evaluateCondition(String cond) {
+ private boolean evaluateCondition(String cond) {
logger.debug(" getCondition() : [" + cond + "]");
String resultStr = "";
@@ -122,7 +122,7 @@ public class IfController extends Generi
logger.debug(" >> evaluate Condition - [ " + cond + "] results
is [" + result + "]");
} catch (Exception e) {
- logger.error(e.getMessage(), e);
+ logger.error(getName()+": error while processing "+ "[" + cond +
"]\n", e);
} finally {
Context.exit();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]