Author: toad
Date: 2009-03-24 17:21:53 +0000 (Tue, 24 Mar 2009)
New Revision: 26164

Modified:
   branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
Log:
Logging, don't store in onTransition unless something has changed


Modified: branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientGetter.java    
2009-03-24 16:52:57 UTC (rev 26163)
+++ branches/db4o/freenet/src/freenet/client/async/ClientGetter.java    
2009-03-24 17:21:53 UTC (rev 26164)
@@ -289,9 +289,11 @@
                synchronized(this) {
                        if(currentState == oldState) {
                                currentState = newState;
-                               Logger.minor(this, "Transition: "+oldState+" -> 
"+newState+" on "+this+" persistent = "+persistent());
-                       } else
-                               Logger.minor(this, "Ignoring transition: 
"+oldState+" -> "+newState+" because current = "+currentState+" on "+this+" 
persistent = "+persistent());
+                               Logger.minor(this, "Transition: "+oldState+" -> 
"+newState+" on "+this+" persistent = "+persistent(), new Exception("debug"));
+                       } else {
+                               Logger.minor(this, "Ignoring transition: 
"+oldState+" -> "+newState+" because current = "+currentState+" on "+this+" 
persistent = "+persistent(), new Exception("debug"));
+                               return;
+                       }
                }
                if(persistent())
                        container.store(this);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to