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

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

Andrew Francis wrote:
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
Thank you Andrew!
Gabriel
participants (2)
-
Andrew Francis
-
Gabriel Rossetti