changeset 62:58659e865279

less System.out.println. less logging.
author casties
date Fri, 06 Jan 2017 16:57:01 +0100
parents c11fd8ca5c0a
children 9d342e713c2f
files .hgignore src/main/java/cl/maps/triple/TripleMap.java src/main/java/org/mpi/openmind/cache/WrapperService.java src/main/java/org/mpi/openmind/configuration/ConfigurationService.java src/main/java/org/mpi/openmind/configuration/ownvalue/loader/OwnValueRulesLoader.java src/main/java/org/mpi/openmind/configuration/ownvalue/loader/PrintRulesLoader.java src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java
diffstat 7 files changed, 23 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Dec 23 15:46:49 2016 +0100
+++ b/.hgignore	Fri Jan 06 16:57:01 2017 +0100
@@ -6,4 +6,16 @@
 syntax: regexp
 ^\.classpath$
 syntax: regexp
-^\.project$
\ No newline at end of file
+^\.project$
+syntax: regexp
+^src/main/resources/hibernate\.cfg\.xml$
+syntax: regexp
+^src/main/resources/log4j\.properties$
+syntax: regexp
+^src/main/resources/openmind\.properties$
+syntax: regexp
+^src/main/resources/hibernate\.cfg\.xml$
+syntax: regexp
+^src/main/resources/log4j\.properties$
+syntax: regexp
+^src/main/resources/openmind\.properties$
\ No newline at end of file
--- a/src/main/java/cl/maps/triple/TripleMap.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/cl/maps/triple/TripleMap.java	Fri Jan 06 16:57:01 2017 +0100
@@ -143,6 +143,7 @@
 		}
 		this.mapOwnKey.remove(key.getOwnKey());
 		
+		/*
 		int hashCodeInput = key.hashCode();
 		System.out.println(hashCodeInput);
 		if(map.size() == 1){
@@ -150,6 +151,7 @@
 			int hashCode2 = uu.hashCode();
 			System.out.println(hashCode2);
 		}
+		*/
 		
 		return this.map.remove(key);
 	}
--- a/src/main/java/org/mpi/openmind/cache/WrapperService.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java	Fri Jan 06 16:57:01 2017 +0100
@@ -1378,8 +1378,7 @@
 	}
 
 	public void removeNodeList(List<Node> nodeList) {
-		System.out.println("\n ### Deleting Nodes size total "
-				+ nodeList.size() + " ### \n");
+		//System.out.println("\n ### Deleting Nodes size total "+ nodeList.size() + " ### \n");
 		this.getPS().removeNodeList(nodeList);
 	}
 
--- a/src/main/java/org/mpi/openmind/configuration/ConfigurationService.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/org/mpi/openmind/configuration/ConfigurationService.java	Fri Jan 06 16:57:01 2017 +0100
@@ -84,8 +84,7 @@
 			s += "\n";
 			logger.info(s);
 		} catch (IOException e) {
-			System.out.println("Properties file \'" + OM_PROPERTIES + " no found.");
-			e.printStackTrace();
+			logger.error("Properties file \'" + OM_PROPERTIES + " no found.");
 		}
 		
 
--- a/src/main/java/org/mpi/openmind/configuration/ownvalue/loader/OwnValueRulesLoader.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/org/mpi/openmind/configuration/ownvalue/loader/OwnValueRulesLoader.java	Fri Jan 06 16:57:01 2017 +0100
@@ -25,9 +25,9 @@
 		try{
 
 			Map<String, OwnValueRule> map = OwnValueRulesLoader.load("conf/own-value.cfg.xml");
-			for(OwnValueRule rule : map.values()){
+			/* for(OwnValueRule rule : map.values()){
 				System.out.println(rule);
-			}
+			} */
 		}catch(Exception e){
 			e.printStackTrace();
 		}
--- a/src/main/java/org/mpi/openmind/configuration/ownvalue/loader/PrintRulesLoader.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/org/mpi/openmind/configuration/ownvalue/loader/PrintRulesLoader.java	Fri Jan 06 16:57:01 2017 +0100
@@ -106,9 +106,9 @@
 	public static void main(String[] args) {
 		try{
 			List<PrintRule> ruleList = PrintRulesLoader.load("conf/own-value.cfg.xml");
-			for(PrintRule rule : ruleList){
+			/* for(PrintRule rule : ruleList){
 				System.out.println(rule);
-			}
+			} */
 			
 		}catch(Exception e){
 			e.printStackTrace();
--- a/src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java	Fri Dec 23 15:46:49 2016 +0100
+++ b/src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java	Fri Jan 06 16:57:01 2017 +0100
@@ -1554,8 +1554,8 @@
      */
     public List<Entity> getLightweightEntities(String systemStatus, Long id, String type, String objectClass,
             String ownValue, boolean ownValueSubString, int maxResult) {
-        logger.debug("GET LW ENTITIES [type=" + type + " id=" + id + ", objectClass=" + objectClass + ", ownValue="
-                + ownValue + "]");
+        //logger.debug("GET LW ENTITIES [type=" + type + " id=" + id + ", objectClass=" + objectClass + ", ownValue="
+        //        + ownValue + "]");
 
         List<Entity> entities = new ArrayList<Entity>();
         /*