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

Gabriel Rossetti mailing_lists at evotex.ch
Tue Apr 22 08:55:16 MDT 2008


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




More information about the Twisted-Python mailing list