Author: toad
Date: 2007-07-07 17:11:55 +0000 (Sat, 07 Jul 2007)
New Revision: 13982
Modified:
trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
Log:
Logging
Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07
00:37:13 UTC (rev 13981)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07
17:11:55 UTC (rev 13982)
@@ -487,33 +487,25 @@
if (b == bbound[offset]) {
offset++;
- if(logMINOR)
- Logger.minor(this, "Matched
"+offset+" of "+bbound.length+" : "+b);
} else if ((b != bbound[offset]) && (offset >
0)) {
// offset bytes matched, but no more
// write the bytes that matched, then
the non-matching byte
bbos.write(bbound, 0, offset);
- if(logMINOR)
- Logger.minor(this, "Partial
match: "+offset+" of "+bbound.length+" matched, no more because b = "+b);
offset = 0;
if(b == bbound[0]) {
offset = 1;
- if(logMINOR)
- Logger.minor(this,
"Matched "+offset+" of "+bbound.length+" : "+b+" after reset");
} else {
bbos.write((int) b & 0xff);
}
} else {
bbos.write((int) b & 0xff);
- if(logMINOR)
- Logger.minor(this, "Did not
match: "+b);
}
}
bbos.close();
parts.put(name, filedata);
- if(Logger.shouldLog(Logger.MINOR, this))
+ if(logMINOR)
Logger.minor(this, "Name = "+name+" length =
"+filedata.size()+" filename = "+filename);
if (filename != null) {
uploadedFiles.put(name, new
HTTPUploadedFileImpl(filename, contentType, filedata));