Strabon

changeset 893:2e65ea60a7c1

moved misleading logger message "Clearing Successful" from generaldb.Strabon to postgis.Strabon
author Babis Nikolaou <charnik@di.uoa.gr>
date Thu Mar 07 17:50:39 2013 +0200 (2013-03-07)
parents ffd67eb0b974
children 06a3145ce606
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Wed Mar 06 22:50:40 2013 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Thu Mar 07 17:50:39 2013 +0200
     1.3 @@ -137,8 +137,6 @@
     1.4  			logger.error("[Strabon.init] initialize", e);
     1.5  		}
     1.6  
     1.7 -		logger.info("[Strabon.init] Clearing Successful.");
     1.8 -
     1.9  		try {
    1.10  			con1 = repo1.getConnection();
    1.11  			
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java	Wed Mar 06 22:50:40 2013 +0200
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java	Thu Mar 07 17:50:39 2013 +0200
     2.3 @@ -61,9 +61,12 @@
     2.4  			st.execute("DROP TABLE IF EXISTS locked;");
     2.5  			st.close();
     2.6  			conn.close();
     2.7 +			logger.info("[Strabon] Clearing Successful.");
     2.8 +			
     2.9  		} catch (SQLException e) {
    2.10  			logger.error("[Strabon.checkAndDeleteLock] SQL Exception occured. Connection URL is <"+url+">: " + e.getMessage());
    2.11  			throw e;
    2.12 +			
    2.13  		} catch (ClassNotFoundException e) {
    2.14  			logger.error("[Strabon.checkAndDeleteLock] Could not load postgres jdbc driver: " + e.getMessage());
    2.15  			throw e;