[Twisted-Python] twisted.protocols.basic.NetstringReceiver: Some errors are not visible

Albert Brandl albert.brandl at weiermayer.com
Wed Apr 7 05:51:56 EDT 2010


On Tue, Apr 06, 2010 at 11:47:48AM +0100, Carlos Valiente wrote:
> 
> The error message "netstring too long" is shadowed by the except
> block. I'd like to see it in my log files.
> 
> Would it make sense to emit logging messaged for those errors, or is
> there any particular reason why they are silenced?

I don't know if there is a particular reason for silencing the errors.
But most classes in basic.py do not emit any log messages (the only
exception is StatefulStringProtocol).

BTW: There is a ticket about NetstringReceiver - you might want to 
add your request there:

http://twistedmatrix.com/trac/ticket/4378

Best regards,

Albert

--
Albert Brandl
Weiermayer Solutions GmbH
Abteistraße 12
A-4813 Altmünster
phone: +43 (0) 720 70 30 14
fax: +43 (0) 7612 20 3 56
web: http://www.weiermayer.com 



More information about the Twisted-Python mailing list