Strabon

changeset 283:b3298617b309

set debug to OFF and ignore debugging from classes other than Strabon ones
author Babis Nikolaou <charnik@di.uoa.gr>
date Mon Jun 18 18:24:52 2012 +0300 (2012-06-18)
parents 6af827ae80af
children daaf7760fc46
files generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java runtime/log4j.properties
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Mon Jun 18 18:08:44 2012 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Mon Jun 18 18:24:52 2012 +0300
     1.3 @@ -800,10 +800,10 @@
     1.4  			query.offset(qb.getOffset());
     1.5  		}
     1.6  		parameters.addAll(query.getParameters());
     1.7 -		if (logger.isDebugEnabled()) {
     1.8 -			logger.debug(query.toString());
     1.9 -			logger.debug(parameters.toString());
    1.10 -		}
    1.11 +//		if (logger.isDebugEnabled()) {
    1.12 +//			logger.debug(query.toString());
    1.13 +//			logger.debug(parameters.toString());
    1.14 +//		}
    1.15  		return query.toString();
    1.16  	}
    1.17  
     2.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java	Mon Jun 18 18:08:44 2012 +0300
     2.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISEvaluation.java	Mon Jun 18 18:24:52 2012 +0300
     2.3 @@ -75,7 +75,7 @@
     2.4  				//
     2.5  		
     2.6  				if (logger.isDebugEnabled()) {
     2.7 -					logger.debug("In PostGIS Evaluation, query is: \n" + stmt);
     2.8 +					logger.debug("In PostGIS Evaluation, query is: \n{}", stmt);
     2.9  				}
    2.10  				return result;
    2.11  			}
     3.1 --- a/runtime/log4j.properties	Mon Jun 18 18:08:44 2012 +0300
     3.2 +++ b/runtime/log4j.properties	Mon Jun 18 18:24:52 2012 +0300
     3.3 @@ -1,6 +1,6 @@
     3.4  # logger level values: OFF, ERROR, WARN, INFO, DEBUG, ALL
     3.5 -#log4j.rootLogger=OFF, CA
     3.6 -log4j.rootLogger=DEBUG, CA
     3.7 +log4j.rootLogger=OFF, CA
     3.8 +#log4j.rootLogger=DEBUG, CA
     3.9  #log4j.rootLogger=INFO, CA, FA
    3.10  
    3.11  # Console Appender
    3.12 @@ -16,3 +16,7 @@
    3.13  # Set the logger level of File Appender to WARN
    3.14  #log4j.appender.FA.Threshold = WARN
    3.15  
    3.16 +
    3.17 +# Sesame configuration (debug only Strabon)
    3.18 +log4j.logger.org.openrdf.query.parser.QueryParserRegistry=INFO
    3.19 +log4j.logger.org.openrdf.sail.generaldb.managers.TripleTableManager=INFO