[Twisted-Python] Re: [Twisted-commits] r14296 - protocol wrapper which logs everything that goes through it
On Sun, Aug 21, 2005 at 08:42:33AM -0600, Jp Calderone wrote:
Author: exarkun Date: Sun Aug 21 08:42:33 2005 New Revision: 14296
Modified: trunk/twisted/protocols/policies.py trunk/twisted/test/test_policies.py Log: protocol wrapper which logs everything that goes through it
Modified: trunk/twisted/protocols/policies.py ============================================================================== --- trunk/twisted/protocols/policies.py (original) +++ trunk/twisted/protocols/policies.py Sun Aug 21 08:42:33 2005 @@ -428,6 +428,69 @@ timeoutPeriod=self.timeoutPeriod)
+class TrafficLoggingProtocol(ProtocolWrapper): [...]
Hmm, this seems to be similar to twisted.manhole._inspectro.LoggingProtocol. Can they be combined? -Andrew.
On Mon, 2005-08-22 at 10:00 +1000, Andrew Bennetts wrote:
Hmm, this seems to be similar to twisted.manhole._inspectro.LoggingProtocol. Can they be combined?
With some refactoring of the new code to make it more generic, yes. Open an issue I guess?
On Mon, Aug 22, 2005 at 11:23:20AM -0400, Itamar Shtull-Trauring wrote:
On Mon, 2005-08-22 at 10:00 +1000, Andrew Bennetts wrote:
Hmm, this seems to be similar to twisted.manhole._inspectro.LoggingProtocol. Can they be combined?
With some refactoring of the new code to make it more generic, yes. Open an issue I guess?
Done: http://twistedmatrix.com/bugs/issue1150 -Andrew.
participants (2)
-
Andrew Bennetts
-
Itamar Shtull-Trauring