Author: toad
Date: 2009-04-03 23:07:56 +0000 (Fri, 03 Apr 2009)
New Revision: 26485
Modified:
trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
Log:
Logging
Modified: trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
2009-04-03 23:05:16 UTC (rev 26484)
+++ trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
2009-04-03 23:07:56 UTC (rev 26485)
@@ -43,6 +43,7 @@
public class SplitFileInserterSegment extends SendableInsert implements
FECCallback, Encodeable {
private static volatile boolean logMINOR;
+ private static volatile boolean logDEBUG;
static {
Logger.registerLogThresholdCallback(new LogThresholdCallback() {
@@ -50,6 +51,7 @@
@Override
public void shouldUpdate() {
logMINOR = Logger.shouldLog(Logger.MINOR, this);
+ logDEBUG = Logger.shouldLog(Logger.DEBUG, this);
}
});
}
@@ -1569,7 +1571,7 @@
Logger.error(this, "Storing "+this+" when already
finished!", new Exception("error"));
return false;
}
- if(logMINOR) Logger.minor(this, "Storing "+this+"
activated="+container.ext().isActive(this)+"
stored="+container.ext().isStored(this), new Exception("debug"));
+ if(logDEBUG) Logger.debug(this, "Storing "+this+"
activated="+container.ext().isActive(this)+"
stored="+container.ext().isStored(this), new Exception("debug"));
return true;
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs