# HG changeset patch # User Felix Wolfsteller # Date 1320919945 0 # Node ID 755d9763928f673f295e2a4911ab1c086ca4e7b9 # Parent 94871b7ce9e97a8cbf35f2710f10442a3450ef60 Improved loggin in error case for dc XPath expression resolution. flys-artifacts/trunk@3208 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 94871b7ce9e9 -r 755d9763928f flys-artifacts/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java: diff -r 94871b7ce9e9 -r 755d9763928f flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.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; }