[Twisted-Python] Re: [Twisted-commits] r12244 - Make spewer log calls in threads, too
exarkun at divmod.com
exarkun at divmod.com
Sat Oct 30 08:22:34 MDT 2004
On Sat, 30 Oct 2004 05:12:25 -0600, Andrew Bennetts <spiv at wolfwood.twistedmatrix.com> wrote:
>Author: spiv
> Date: Sat Oct 30 05:12:24 2004
> New Revision: 12244
>
> Modified:
> trunk/twisted/application/app.py
> Log:
> Make spewer log calls in threads, too
>
> Modified: trunk/twisted/application/app.py
> ==============================================================================
> --- trunk/twisted/application/app.py (original)
> +++ trunk/twisted/application/app.py Sat Oct 30 05:12:24 2004
> @@ -7,7 +7,7 @@
> from twisted.persisted import sob
> from twisted.application import compat, service
> from twisted import copyright
> -import sys, os, pdb, profile, getpass, traceback, signal
> +import sys, os, pdb, profile, getpass, traceback, signal, threading
>
> reactorTypes = {
> 'wx': 'twisted.internet.wxreactor',
> @@ -199,6 +199,7 @@
> """Print an insanely verbose log of everything that happens. Useful
> when debugging freezes or locks in complex code."""
> sys.settrace(util.spewer)
> + threading.settrace(util.spewer)
>
Is util.spewer really thread-safe? I would have expected otherwise.
Jp
More information about the Twisted-Python
mailing list