[Twisted-Python] Twistd problem with redirection

Roland Hedberg roland.hedberg at adm.umu.se
Tue Oct 23 23:57:14 MDT 2007


Hi!

I've encountered a strange problem which I'd like to have some help with.

I'm building some software using Twisted and have encountered the
following problem.

I use twistd 2.5.0 and starts the server using:

twistd pyom --logfile=x.log ...

Now, the tap file that is run by twistd loads and initiates modules
dependent on the configuration. And these modules might load other modules.

So, what happens is that, depending (looks like it) on how complex the
setup is, the redirect of stdout output for print to the logfile is not
universally done.

Consistent but depending on the configuration, the output from print for
one of modules continues to go to stdout instead of to the logfile.

Anyone got a clue as to what is happening and what I can do about it ?

-- Roland





More information about the Twisted-Python mailing list