From e58320a50722b31b5c3a95bc3ff3b07e26fc5efa Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 15 Apr 2009 07:37:36 +0000 Subject: [PATCH] added more info in log fore debugging git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5805 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/crawler/CrawlQueues.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/crawler/CrawlQueues.java b/source/de/anomic/crawler/CrawlQueues.java index 5478d8f0b..fc4e6c002 100644 --- a/source/de/anomic/crawler/CrawlQueues.java +++ b/source/de/anomic/crawler/CrawlQueues.java @@ -306,7 +306,7 @@ public class CrawlQueues { // check again if (this.size() >= value) { if (this.log.isFine()) { - log.logFine(type + "Crawl: too many processes in loader queue, dismissed (" + "cacheLoader=" + this.size() + ")"); + log.logFine(type + "Crawl: too many processes in loader queue, dismissed (" + "cacheLoader=" + this.size() + "), httpClients = " + httpClient.connectionCount()); } return false; } @@ -344,7 +344,7 @@ public class CrawlQueues { } // check again if (this.size() >= sb.getConfigLong(plasmaSwitchboardConstants.CRAWLER_THREADS_ACTIVE_MAX, 10)) { - if (this.log.isFine()) log.logFine("remoteCrawlLoaderJob: too many processes in loader queue, dismissed (" + "cacheLoader=" + this.size() + ")"); + if (this.log.isFine()) log.logFine("remoteCrawlLoaderJob: too many processes in loader queue, dismissed (" + "cacheLoader=" + this.size() + "), httpClients = " + httpClient.connectionCount()); return false; } @@ -605,7 +605,8 @@ public class CrawlQueues { httpClient.initConnectionManager(); this.entry.setStatus("worker-exception", serverProcessorJob.STATUS_FINISHED); } finally { - workers.remove(code); + crawlWorker w = workers.remove(code); + assert w != null; } }