Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
more debugging / better result status logging for parser/caching errors
orbiter96174b2b56b3
diff --git a/source/de/anomic/plasma/plasmaParser.java b/source/de/anomic/plasma/plasmaParser.javaindex e63986f41..02fb21638 100644--- a/source/de/anomic/plasma/plasmaParser.java+++ b/source/de/anomic/plasma/plasmaParser.java@@ -544,9 +544,9 @@ public final class plasmaParser {// testing if the resource is not emptyif (sourceArray == null || sourceArray.length == 0) {- final String errorMsg = "No resource content available (1).";+ final String errorMsg = "No resource content available (1) " + ((sourceArray == null) ? "source == null" : "source.length() == 0");this.theLogger.logInfo("Unable to parse '" + location + "'. " + errorMsg);- throw new ParserException(errorMsg,location, "document has no content");+ throw new ParserException(errorMsg,location, errorMsg);}// creating an InputStreamdiff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 5cf3ca03f..e5ae12e4d 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1037,7 +1037,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.plasmaHTCache.storeFile(entry.url(), entry.cacheArray());if (this.log.isFine()) this.log.logFine("WROTE FILE (" + entry.cacheArray().length + " bytes) for " + entry.url());} else {- if (this.log.isFine()) this.log.logFine("WRITE OF FILE " + entry.url() + " FORBIDDEN: " + error);+ if (this.log.isWarning()) this.log.logWarning("WRITE OF FILE " + entry.url() + " FORBIDDEN: " + error);}//} else {//this.log.logFine("EXISTING FILE (" + entry.cacheFile.length() + " bytes) for " + entry.cacheFile);