You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2011/09/22 11:53:22 UTC

svn commit: r1174029 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/control/IfController.java

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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org