Update of /cvsroot/freenet/freenet/src/freenet/client
In directory sc8-pr-cvs1:/tmp/cvs-serv21254/src/freenet/client

Modified Files:
        InternalClient.java 
Log Message:
6121:
Fix no StoreData being sent for inserts in ReceivingInsert. Breaks both local and 
final-node inserts.
Try to catch NPE in TWOS earlier.
Logging


Index: InternalClient.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/InternalClient.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- InternalClient.java 18 Sep 2003 17:48:05 -0000      1.28
+++ InternalClient.java 6 Oct 2003 15:20:17 -0000       1.29
@@ -180,6 +180,9 @@
         //
         // Send an event to the listeners.
         final void unlockedProduceEvent(ClientEvent evt) {
+           if(Core.logger.shouldLog(Logger.DEBUG, this))
+               Core.logger.log(this, "Producing event: "+evt+" ("+this+")",
+                               Logger.DEBUG);
             if (evt == null) {
                 return;
             }
@@ -435,6 +438,8 @@
         
         public synchronized TrailerWriter dataFound(Node n, Storables storables,
                                                    long ctLength) throws 
SendFailedException {
+           if(Core.logger.shouldLog(Logger.DEBUG, this))
+               Core.logger.log(this, "dataFound() on "+this, Logger.DEBUG);
             ClientEvent uriEvt = null;
             ClientEvent collisionEvt = null;
             ClientEvent terminalEvt = null;

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to