[Twisted-Python] live - debug?
andrade_luciano_a at yahoo.com.ar
Tue Jan 25 15:53:06 EST 2005
--- Itamar Shtull-Trauring <itamar at itamarst.org>
> On Tue, 2005-01-25 at 16:53 -0300, Luciano Andrade
> > Hello every one...I start using twisted matrix and
> > develop an aplication (both server and client)
> > realativly easy but it seems every once in a wille
> > server (some times the client too) hung showing
> > traceback from an error, the problem is that the
> > software works, but i like to put some debug(or a
> > system) to see if ther server crashed (sometimes
> > acsidentally crash the reactor), can any one use
> > something like that, also I like to use some sort
> > restart-on-halt system. Any ideas (except
> > gramatical/ortographics corrections) are wellcome.
> You can have code that runs everytime an exception
> is logged:
> f(aDict) will be called for every logged message,
> exceptions/failures. Just make sure f() doesn't
> raise exceptions itself
> or it will get removed.
> If you have code that crashes the *reactor*, i.e.
> twisted quits, that's
> a bug in twisted and you should add a report ot
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
when I say that crashes the *reactor* i mean that the
server borke the conection with the client(the
protocol crahses acording with i understud) but
others clients later are unhable to connect (in the
server dos-box continuosly showing a traceback)
PS: thaks for the micro-example, I just read about the
log class and don't know where get simple exmaples.
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Twisted-Python