log tweaks

This commit is contained in:
zzz
2013-10-07 12:10:10 +00:00
parent 249319f76f
commit 3ac8083faf
2 changed files with 4 additions and 4 deletions

View File

@ -1239,8 +1239,8 @@ class PeerCoordinator implements PeerListener
}
}
}
if (_log.shouldLog(Log.WARN) && !partialPieces.isEmpty())
_log.warn("Peer " + peer + " has none of our partials " + partialPieces);
if (_log.shouldLog(Log.INFO) && !partialPieces.isEmpty())
_log.info("Peer " + peer + " has none of our partials " + partialPieces);
}
// ...and this section turns this into the general move-requests-around code!
// Temporary? So PeerState never calls wantPiece() directly for now...

View File

@ -800,8 +800,8 @@ public class KRPC implements I2PSessionMuxedListener, DHT {
// Lookup the dest for the hash
// TODO spin off into thread or queue? We really don't want to block here
if (!lookupDest(nInfo)) {
if (_log.shouldLog(Log.WARN))
_log.warn("Dropping repliable query, no dest for " + nInfo);
if (_log.shouldLog(Log.INFO))
_log.info("Dropping repliable query, no dest for " + nInfo);
timeout(nInfo);
return null;
}