[lsc-changes] r473 - lsc/trunk/src/main/java/org/lsc/utils

jclarke at lsc-project.org jclarke at lsc-project.org
Sun Nov 29 16:18:32 CET 2009


Author: jclarke
Date: 2009-11-29 16:18:31 +0100 (Sun, 29 Nov 2009)
New Revision: 473

Modified:
   lsc/trunk/src/main/java/org/lsc/utils/JScriptEvaluator.java
Log:
Don't display stacktrace for plain JavaScript errors (it's still available in DEBUG level)

Modified: lsc/trunk/src/main/java/org/lsc/utils/JScriptEvaluator.java
===================================================================
--- lsc/trunk/src/main/java/org/lsc/utils/JScriptEvaluator.java	2009-11-29 15:02:57 UTC (rev 472)
+++ lsc/trunk/src/main/java/org/lsc/utils/JScriptEvaluator.java	2009-11-29 15:18:31 UTC (rev 473)
@@ -233,7 +233,8 @@
 		try {
 			ret = script.exec(cx, scope);
 		} catch (Exception e) {
-			LOGGER.error(e.toString(), e);
+			LOGGER.error(e.toString());
+			LOGGER.debug(e.toString(), e);
 			return null;
 		}
 



More information about the lsc-changes mailing list