Update of /var/cvs/contributions/natmm/src/nl/mmatch
In directory james.mmbase.org:/tmp/cvs-serv28262/src/nl/mmatch
Modified Files:
CSVReader.java
Log Message:
NMCMS-621 - Remove not needed log.info statement and make it log.debug; Also
cleaning up Java code.
See also: http://cvs.mmbase.org/viewcvs/contributions/natmm/src/nl/mmatch
See also: http://www.mmbase.org/jira/browse/NMCMS-621
Index: CSVReader.java
===================================================================
RCS file: /var/cvs/contributions/natmm/src/nl/mmatch/CSVReader.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- CSVReader.java 25 Sep 2008 11:59:46 -0000 1.23
+++ CSVReader.java 15 Jan 2009 10:57:13 -0000 1.24
@@ -181,7 +181,9 @@
int nodesDeleted = 0;
while(i<thisnodesList.size()) {
thisnode = thisnodesList.getNode(i);
- log.info("trying to access node " +
thisnode.getValue(thisFields[0]).toString());
+ if (log.isDebugEnabled()) {
+ log.debug("trying to access node " +
thisnode.getValue(thisFields[0]).toString());
+ }
if((thisnode.getValue(thisFields[0]).toString()).equals(thisFields[1])) {
thisnode.delete(true);
nodesDeleted++;
@@ -190,7 +192,9 @@
relations =
thisnode.getRelations(thisRelations[t],thisRelations[t+1]);
for(int r=0; r<relations.size(); r++) {
Relation relation = relations.getRelation(r);
- log.info("trying to access relation " +
relation.getValue("readmore2"));
+ if (log.isDebugEnabled()) {
+ log.debug("trying to access relation " +
relation.getValue("readmore2"));
+ }
if(relation.getValue("readmore2").equals("inactive")) {
relation.delete(true);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs