[Twisted-Python] Twistd problem with redirection

Roland Hedberg roland.hedberg at adm.umu.se
Wed Oct 24 09:26:17 EDT 2007

Phil Mayers wrote:
> On Wed, 2007-10-24 at 07:57 +0200, Roland Hedberg wrote:
>> Consistent but depending on the configuration, the output from print for
>> one of modules continues to go to stdout instead of to the logfile.
> Can you produce a minimal example showing the effect?

I can try, but ...

>> Anyone got a clue as to what is happening and what I can do about it ?
> sed -i -e 's/print \(.*\)/log.msg(\1)/g' *.py
> i.e. don't use "print" for logging.

Doing this modification the problem went away.

Thanks Phil!

-- Roland

More information about the Twisted-Python mailing list