Mercurial > dive4elements > river
changeset 1859:755d9763928f
Improved loggin in error case for dc XPath expression resolution.
flys-artifacts/trunk@3208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 10:12:25 +0000 |
parents | 94871b7ce9e9 |
children | ddd425858169 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Nov 10 09:37:59 2011 +0000 +++ b/flys-artifacts/ChangeLog Thu Nov 10 10:12:25 2011 +0000 @@ -1,3 +1,9 @@ +2011-11-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java: + When during XPath evaluation an exception is thrown, log the + expression that caused the trouble. + 2011-11-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Thu Nov 10 09:37:59 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Thu Nov 10 10:12:25 2011 +0000 @@ -138,7 +138,7 @@ NodeList subs = current.getChildNodes(); int S = subs.getLength(); - // check only direct children + // Check only direct children. Node stmntNode = null; for (int i = 0; i < S; ++i) { Node node = subs.item(i); @@ -406,7 +406,7 @@ : null; } catch (XPathExpressionException xfce) { - log.error(xfce); + log.error("expression: " + expr, xfce); } return null; }