[Twisted-Python] unhandled exception in deferred has a delayed logging ?

Phil Mayers p.mayers at imperial.ac.uk
Thu Sep 27 07:15:55 EDT 2012

On 27/09/12 03:47, Jonathan Vanasco wrote:
> thanks so much for the quick response, and i wish i thought of
> looking in the FAQ ( just searched online, and nothing relevant came
> up )
> Will defer.setDebugging(True) make these errors print/log sooner ?

I don't think so. I think you'll just get more info in the error.

You could using a "loopingcall" to call gc.collect() periodically but 
it's hacky, and only helps with things you've cleared all refs to. If 
you've got a dangling ref, it'll just never get gc'ed.

> i'm in the process of getting all the addErrback() commands and

That's your better option.

More information about the Twisted-Python mailing list