You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Guillaume Déflache <gu...@wyona.com> on 2009/08/27 16:36:07 UTC
[Jelly] JEXL error handling
Hi all! (I am new here, I only recently started maintaining a lot of
Jelly scripts on some company project.)
I was just wondering why (in Jelly 1.0) Java exceptions in scripts (more
specifically those coming from JEXL expressions) log at the TRACE(!)
level? It makes noticing problems at runtime extremely difficult for us,
as there is also (copious) log output at the DEBUG level.
(The exceptions also aren't propagated upwards, which is fine I guess,
at least with good logging.)
AFAICU the problem is contained within the TagScript class[1] in the
"handleException" methods: here a higher level of logging could be used,
at least WARN I guess, or even maybe ERROR.
AFAICR this class is unfortunately created directly using new and/or
referenced statically, so there is no way to use subclassing to
circumvent the problem.
[1]:
http://svn.apache.org/repos/asf/commons/proper/jelly/tags/commons-jelly-1.0/src/java/org/apache/commons/jelly/impl/TagScript.java
WDYT?
Cheers,
Guillaume
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org