Strabon

changeset 256:60f9e710025f

add logging to try/catch without error reporting
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jun 06 13:06:36 2012 +0300 (2012-06-06)
parents 4d7431f4f012
children ccd300595dc7
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Tue Jun 05 17:00:02 2012 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Wed Jun 06 13:06:36 2012 +0300
     1.3 @@ -551,11 +551,10 @@
     1.4  							baos.reset();
     1.5  
     1.6  						} catch (ParseException e) {
     1.7 -							//Den prokeitai gia WKT
     1.8 -							//System.out.println(bindingSet.toString());
     1.9 -							//e.printStackTrace();
    1.10 +							// this is not WKT
    1.11 +							logger.error("[Strabon.query] Invalid WKT.", e);
    1.12  						} catch (Exception e) {
    1.13 -							e.printStackTrace();
    1.14 +							logger.error("[Strabon.query] Received exception.", e);
    1.15  						}
    1.16  
    1.17  						//Start populating KML here
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java	Tue Jun 05 17:00:02 2012 +0300
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java	Wed Jun 06 13:06:36 2012 +0300
     2.3 @@ -43,7 +43,7 @@
     2.4  			strabon.query(queryString, resultsFormat, strabon.getSailRepoConnection());
     2.5  			
     2.6  		} catch (Exception e) {
     2.7 -			logger.error("[Strabon.QueryOp] Error during querying.", e);
     2.8 +			logger.error("[Strabon.QueryOp] Error during execution of SPARQL query.", e);
     2.9  			
    2.10  		} finally {
    2.11  			if (strabon != null) {