*) correcting logging statement

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@335 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 8718795c6d
commit d50ad1521a

@ -80,6 +80,7 @@ public class hello {
// we easily know the caller's IP:
String clientip = (String) header.get("CLIENTIP", "<unknown>"); // read an artificial header addendum
String reportedip = remoteSeed.get("IP", "");
String reportedPeerType = remoteSeed.get("PeerType", "junior");
float clientversion = remoteSeed.getVersion();
int urls = -1;
@ -121,7 +122,7 @@ public class hello {
// no connection here, instead store junior in connection cache
if ((remoteSeed.hash != null) && (remoteSeed.isProper())) yacyCore.peerActions.peerPing(remoteSeed);
}
if (!((String)prop.get("yourtype")).equals(remoteSeed.get("PeerType", "junior"))) {
if (!((String)prop.get("yourtype")).equals(reportedPeerType)) {
yacyCore.log.logInfo("hello: changing remote peer '" + remoteSeed.getName() + "' [" + reportedip + "] peerType to '" + prop.get("yourtype") + "'.");
}

Loading…
Cancel
Save