Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) avoid performance loss if log level is greater than 'fine' See: http://www.yacy-forum.de/viewtopic.php?p=25180

theli959b779aba23
diff --git a/source/de/anomic/plasma/plasmaDHTChunk.java b/source/de/anomic/plasma/plasmaDHTChunk.java
index 50c900b79..e67dc47bb 100644
--- a/source/de/anomic/plasma/plasmaDHTChunk.java
+++ b/source/de/anomic/plasma/plasmaDHTChunk.java
@@ -290,7 +290,8 @@ public class plasmaDHTChunk {
}
String wordHash = indexContainers[i].getWordHash();
count += wordIndex.removeEntries(this.indexContainers[i].getWordHash(), urlHashes, true);
- log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left");
+ if (log.isFine())
+ log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left");
this.indexContainers[i] = null;
}
return count;