From a3dadcd89b33201d2b83536d5150589157ddac2b Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 12 Mar 2008 00:56:18 +0000 Subject: [PATCH] preventing that peer which return a false search result are disconnected git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4555 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.java index 1e021df74..74d85dcf0 100644 --- a/source/de/anomic/yacy/yacyClient.java +++ b/source/de/anomic/yacy/yacyClient.java @@ -443,8 +443,8 @@ public final class yacyClient { ), "UTF-8" ); } catch (IOException e) { - yacyCore.log.logFine("SEARCH failed FROM " + target.hash + ":" + target.getName() + " (" + e.getMessage() + "), score=" + target.selectscore + ", DHTdist=" + yacyDHTAction.dhtDistance(target.hash, wordhashes.substring(0, 12))); - yacyCore.peerActions.peerDeparture(target, "search request to peer created io exception: " + e.getMessage()); + yacyCore.log.logInfo("SEARCH failed, Peer: " + target.hash + ":" + target.getName() + " (" + e.getMessage() + "), score=" + target.selectscore + ", DHTdist=" + yacyDHTAction.dhtDistance(target.hash, wordhashes.substring(0, 12))); + //yacyCore.peerActions.peerDeparture(target, "search request to peer created io exception: " + e.getMessage()); return null; } @@ -484,8 +484,8 @@ public final class yacyClient { results = Integer.parseInt(result.get("count")); joincount = Integer.parseInt(result.get("joincount")); } catch (NumberFormatException e) { - yacyCore.log.logFine("SEARCH failed FROM " + target.hash + ":" + target.getName() + ", wrong output format"); - yacyCore.peerActions.peerDeparture(target, "search request to peer created number format exception"); + yacyCore.log.logInfo("SEARCH failed FROM " + target.hash + ":" + target.getName() + ", wrong output format: " + e.getMessage()); + //yacyCore.peerActions.peerDeparture(target, "search request to peer created number format exception"); return null; } // System.out.println("***result count " + results);