[freenet-dev] r18922 - trunk/freenet/src/freenet/client/async

Matthew Toseland toad at amphibian.dyndns.org
Thu Apr 3 18:19:12 UTC 2008


On Thursday 03 April 2008 16:17, Robert Hailey wrote:
> 
> On Apr 2, 2008, at 5:01 PM, dbkr at freenetproject.org wrote:
> 
> > Author: dbkr
> > Date: 2008-04-02 22:01:06 +0000 (Wed, 02 Apr 2008)
> > New Revision: 18922
> >
> > Modified:
> >   trunk/freenet/src/freenet/client/async/USKManager.java
> > Log:
> > Fix logging confusion (assuming ERROR was intended, change if not)
> >
> >
> > Modified: trunk/freenet/src/freenet/client/async/USKManager.java
> > ===================================================================
> > --- trunk/freenet/src/freenet/client/async/USKManager.java	 
> > 2008-04-02 19:55:49 UTC (rev 18921)
> > +++ trunk/freenet/src/freenet/client/async/USKManager.java	 
> > 2008-04-02 22:01:06 UTC (rev 18922)
> > @@ -212,7 +212,7 @@
> > 			USK clear = origUSK.clearCopy();
> > 			USKCallback[] callbacks = (USKCallback[])  
> > subscribersByClearUSK.get(clear);
> > 			if(callbacks == null){ // maybe we should throw something ? shall  
> > we allow multiple unsubscriptions ?
> > -				if(Logger.shouldLog(Logger.MINOR, this)){
> > +				if(Logger.shouldLog(Logger.ERROR, this)){
> > 					Logger.error(this, "The callback is null! it has been already  
> > unsubscribed, hasn't it?");
> > 					new NullPointerException("The callback is null! it has been  
> > already unsubscribed, hasn't it?").printStackTrace();
> > 				}
> 
> That logic still looks broken. We only throw if we would log the  
> message???

We don't throw.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20080403/d6fc3296/attachment.pgp 


More information about the Devl mailing list