Author: toad
Date: 2009-04-03 17:17:25 +0000 (Fri, 03 Apr 2009)
New Revision: 26465

Modified:
   trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
Logging - logDEBUG for update notifications


Modified: trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-04-03 17:15:59 UTC (rev 26464)
+++ trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-04-03 17:17:25 UTC (rev 26465)
@@ -39,6 +39,7 @@
 public class SimpleManifestPutter extends BaseClientPutter implements 
PutCompletionCallback {
 
        private static volatile boolean logMINOR;
+       private static volatile boolean logDEBUG;
        
        static {
                Logger.registerLogThresholdCallback(new LogThresholdCallback() {
@@ -46,6 +47,7 @@
                        @Override
                        public void shouldUpdate() {
                                logMINOR = Logger.shouldLog(Logger.MINOR, this);
+                               logDEBUG = Logger.shouldLog(Logger.DEBUG, this);
                        }
                });
        }
@@ -1716,7 +1718,7 @@
        }
        
        public void objectOnUpdate(ObjectContainer container) {
-               if(logMINOR) Logger.minor(this, "Updating "+this+" 
activated="+container.ext().isActive(this)+" 
stored="+container.ext().isStored(this), new Exception("debug"));
+               if(logDEBUG) Logger.debug(this, "Updating "+this+" 
activated="+container.ext().isActive(this)+" 
stored="+container.ext().isStored(this), new Exception("debug"));
        }
 
        public boolean objectCanNew(ObjectContainer container) {
@@ -1724,7 +1726,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

Reply via email to