more debugging / better result status logging for parser/caching errors

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5341 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent 84185baa81
commit 96174b2b56

@ -544,9 +544,9 @@ public final class plasmaParser {
// testing if the resource is not empty // testing if the resource is not empty
if (sourceArray == null || sourceArray.length == 0) { if (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); 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 InputStream // creating an InputStream

@ -1037,7 +1037,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
plasmaHTCache.storeFile(entry.url(), entry.cacheArray()); plasmaHTCache.storeFile(entry.url(), entry.cacheArray());
if (this.log.isFine()) this.log.logFine("WROTE FILE (" + entry.cacheArray().length + " bytes) for " + entry.url()); if (this.log.isFine()) this.log.logFine("WROTE FILE (" + entry.cacheArray().length + " bytes) for " + entry.url());
} else { } 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 { //} else {
//this.log.logFine("EXISTING FILE (" + entry.cacheFile.length() + " bytes) for " + entry.cacheFile); //this.log.logFine("EXISTING FILE (" + entry.cacheFile.length() + " bytes) for " + entry.cacheFile);

Loading…
Cancel
Save