From 277048501ea5d9d110487cef80f1879593d2c0a2 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 8 Jul 2005 16:24:07 +0000 Subject: [PATCH] bugfix git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@395 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSwitchboard.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index 36ddd6860..1ef2ccbdb 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -465,8 +465,15 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser // work off unwritten files if (entry.cacheArray != null) { + String error = entry.shallStoreCache(); + if (error == null) { cacheManager.writeFile(entry.url, entry.cacheArray); - log.logInfo("WROTE FILE (" + entry.cacheArray.length + " bytes) for " + entry.cacheFile); + log.logInfo("WROTE FILE (" + entry.cacheArray.length + " bytes) for " + entry.cacheFile); + } else { + log.logInfo("WRITE OF FILE " + entry.cacheFile + " FORBIDDEN: " + error); + } + } else { + log.logInfo("EXISTING FILE (" + entry.cacheFile.length() + " bytes) for " + entry.cacheFile); } // enqueue for further crawling