Skip to content

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

reduction of logging to prevent too much IO caused be logging

Michael Peter Christen58e7d1952f2c
diff --git a/source/de/anomic/crawler/CrawlStacker.java b/source/de/anomic/crawler/CrawlStacker.java
index f21e0b087..307f0f596 100644
--- a/source/de/anomic/crawler/CrawlStacker.java
+++ b/source/de/anomic/crawler/CrawlStacker.java
@@ -443,7 +443,6 @@ public final class CrawlStacker {
if (oldEntry == null) {
if (dbocc != null) {
// do double-check
- if (this.log.isFine()) this.log.logFine("URL '" + urlstring + "' is double registered in '" + dbocc + "'.");
if (dbocc.equals("errors")) {
final ZURL.Entry errorEntry = this.nextQueue.errorURL.get(url.hash());
return "double in: errors (" + errorEntry.anycause() + ")";
diff --git a/source/de/anomic/crawler/ZURL.java b/source/de/anomic/crawler/ZURL.java
index 83dc8798b..1ebd1f36c 100644
--- a/source/de/anomic/crawler/ZURL.java
+++ b/source/de/anomic/crawler/ZURL.java
@@ -167,7 +167,7 @@ public class ZURL implements Iterable<ZURL.Entry> {
final Entry entry = new Entry(bentry, executor, workdate, workcount, reason);
put(entry);
this.stack.add(entry.hash());
- Log.logInfo("Rejected URL", bentry.url().toNormalform(false, false) + " - " + reason);
+ if (!reason.startsWith("double")) Log.logInfo("Rejected URL", bentry.url().toNormalform(false, false) + " - " + reason);
if (this.solrConnector != null && failCategory.store) {
// send the error to solr
try {
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index f9f507da3..8fca688f6 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -292,7 +292,7 @@ public final class Switchboard extends serverSwitch
sb = this;
// set loglevel and log
- setLog(new Log("YACY_SEARCH"));
+ setLog(new Log("SWITCHBOARD"));
// set default peer name
Seed.ANON_PREFIX = getConfig("peernameprefix", "_anon");
@@ -1661,10 +1661,6 @@ public final class Switchboard extends serverSwitch
}
// put document into the concurrent processing queue
- if ( this.log.isFinest() ) {
- this.log.logFinest("deQueue: passing to indexing queue: "
- + response.url().toNormalform(true, false));
- }
try {
this.indexingDocumentProcessor.enQueue(new indexingQueueEntry(
response,
@@ -2249,11 +2245,6 @@ public final class Switchboard extends serverSwitch
public indexingQueueEntry parseDocument(final indexingQueueEntry in) {
in.queueEntry.updateStatus(Response.QUEUE_STATE_PARSING);
- // debug
- if ( this.log.isFinest() ) {
- this.log.logFinest("PARSE " + in.queueEntry);
- }
-
Document[] documents = null;
try {
documents = parseDocument(in.queueEntry);
@@ -2487,9 +2478,6 @@ public final class Switchboard extends serverSwitch
}
in.documents = doclist.toArray(new Document[doclist.size()]);
final Condenser[] condenser = new Condenser[in.documents.length];
- if ( this.log.isFine() ) {
- this.log.logFine("Condensing for '" + in.queueEntry.url().toNormalform(false, true) + "'");
- }
for ( int i = 0; i < in.documents.length; i++ ) {
condenser[i] =
new Condenser(in.documents[i], in.queueEntry.profile().indexText(), in.queueEntry