[Twisted-Python] Re: [Twisted-commits] make log.err return the thing you pass to it

Andrew Bennetts andrew-twisted at puzzling.org
Sat Nov 8 09:12:50 EST 2003


On Sat, Nov 08, 2003 at 04:51:25AM -0700, radix CVS wrote:
> Modified files:
> Twisted/twisted/python/log.py 1.52 1.53
> 
> Log message:
> make log.err return the thing you pass to it

Isn't this a fairly significant change to the API?  Now doing
deferred.addErrback(log.err) will log the error, and then log it again when
the deferred is garbage-collected...

I guess it won't actually break anything, just add some confusion to log
files, but what's the new idiom for

    d.addErrback(log.err)   # log and swallow any errors that happened

going to be?

-Andrew.





More information about the Twisted-Python mailing list