Author: toad
Date: 2008-07-21 18:59:01 +0000 (Mon, 21 Jul 2008)
New Revision: 21293
Modified:
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Logging
Modified:
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-07-21 18:56:13 UTC (rev 21292)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-07-21 18:59:01 UTC (rev 21293)
@@ -572,6 +572,7 @@
* Caller must set(this) iff returns true.
*/
private boolean onNonFatalFailure(FetchException e, int blockNo,
SplitFileFetcherSubSegment seg, ObjectContainer container, ClientContext
context, RequestScheduler sched, int maxTries) {
+ if(logMINOR) Logger.minor(this, "Calling onNonFatalFailure for
block "+blockNo+" on "+this+" from "+seg);
int tries;
boolean failed = false;
boolean cooldown = false;
@@ -617,7 +618,7 @@
}
}
if(tries != seg.retryCount+1) {
- Logger.error(this, "Failed on segment "+seg+" but tries
for block (after increment) is "+tries);
+ Logger.error(this, "Failed on segment "+seg+" but tries
for block "+blockNo+" (after increment) is "+tries);
}
if(failed) {
onFatalFailure(e, blockNo, seg, container, context);