Strabon
changeset 1230:a8ed86790eb4
Add if before debug log messages
author | George Garbis <ggarbis@di.uoa.gr> |
---|---|
date | Thu Jul 04 18:46:04 2013 +0300 (2013-07-04) |
parents | a28f8ce7489f |
children | 866bf84309ae |
files | postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java |
line diff
1.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java Wed Jul 17 16:06:52 2013 +0300 1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java Thu Jul 04 18:46:04 2013 +0300 1.3 @@ -70,7 +70,9 @@ 1.4 stmt.setObject(++p, o); 1.5 } 1.6 Collection<GeneralDBColumnVar> proj = qb.getProjections(); 1.7 - logger.debug("In PostGIS Evaluation, query is: \n{}", stmt); 1.8 + if (logger.isDebugEnabled()) { 1.9 + logger.debug("In PostGIS Evaluation, query is: \n{}", stmt); 1.10 + } 1.11 GeneralDBBindingIteration result = new PostGISBindingIteration(stmt); 1.12 result.setProjections(proj); 1.13 result.setBindings(bindings); 1.14 @@ -80,9 +82,6 @@ 1.15 result.setGeoNames(this.geoNames); 1.16 result.setConstructIndexesAndNames(this.constructIndexesAndNames); 1.17 1.18 - //if (logger.isDebugEnabled()) { 1.19 - // logger.debug("In PostGIS Evaluation, query is: \n{}", stmt); 1.20 - //} 1.21 return result; 1.22 } 1.23 catch (SQLException e) {