Author: toad
Date: 2008-02-15 19:36:24 +0000 (Fri, 15 Feb 2008)
New Revision: 17960

Modified:
   trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
Log:
logging

Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java   2008-02-15 
19:32:39 UTC (rev 17959)
+++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java   2008-02-15 
19:36:24 UTC (rev 17960)
@@ -81,6 +81,8 @@
        }

        public static void handleDownload(ToadletContext context, Bucket data, 
BucketFactory bucketFactory, String mimeType, String requestedMimeType, String 
forceString, boolean forceDownload, String basePath, FreenetURI key, String 
extras, String referrer, boolean downloadLink, ToadletContext ctx) throws 
ToadletContextClosedException, IOException {
+               if(Logger.shouldLog(Logger.MINOR, FProxyToadlet.class))
+                       Logger.minor(FProxyToadlet.class, 
"handleDownload(data.size="+data.size()+", mimeType="+mimeType+", 
requestedMimeType="+requestedMimeType+", forceDownload="+forceDownload+", 
basePath="+basePath+", key="+key);
                String extrasNoMime = extras; // extras will not include MIME 
type to start with - REDFLAG maybe it should be an array
                if(requestedMimeType != null) {
                        if(mimeType == null || 
!requestedMimeType.equals(mimeType)) {


Reply via email to