[Twisted-Python] Why is stopProducing() called?

Andrew Francis andrewfr_ice at yahoo.com
Tue Apr 22 08:40:22 MDT 2008


Hi Gabriel:

>Is there a way to log the execution of twisted? I'm
>getting a connection loss and I don't know where it
>comes from and why. I'm not explicitly calling
>looseConnection.

I think the easiest way to do logging is

from   twisted.python                              
import log

...

log.startLogging(a file descriptor - i.e., sys.stdout)

Twisted will start emitting log messages. You can use
log.msg() for additional messages.

I also found using a debugger is a slow but good way
to trace through what Twisted is doing.

Cheers,
Andrew





      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




More information about the Twisted-Python mailing list