# HG changeset patch # User Sascha L. Teichmann # Date 1343560311 0 # Node ID f1f798b5f14a4e94c6c826ed2c454daf5b2135c9 # Parent afc7bfb4800b7bd7e4f44379055cd62f31a20d36 Made expensive XMLUtils.toString() debug output conditional. flys-artifacts/trunk@5153 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r afc7bfb4800b -r f1f798b5f14a flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Sun Jul 29 11:04:06 2012 +0000 +++ b/flys-artifacts/ChangeLog Sun Jul 29 11:11:51 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-29 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java: + Made expensive XMLUtils.toString() debug output conditional. + 2012-07-29 Sascha L. Teichmann Use the new infrastructure to figure out if a facet should diff -r afc7bfb4800b -r f1f798b5f14a flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java Sun Jul 29 11:04:06 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeInfoService.java Sun Jul 29 11:11:51 2012 +0000 @@ -75,8 +75,9 @@ ) { logger.debug("GaugeInfoService.process"); - // XXX REMOVE THIS - logger.debug(XMLUtils.toString(data)); + if (logger.isDebugEnabled()) { + logger.debug(XMLUtils.toString(data)); + } River river = getRiverFromRequest(data); @@ -88,6 +89,7 @@ for (Filter f: filters) { if (f.apply(g)) { filtered.add(g); + break; } } }