where should I look for sys.stderr output?

Gerhard Häring gh at ghaering.de
Mon May 12 11:17:31 EDT 2003


Steve Canfield <stevecanfield at yahoo.com> wrote:
> Okay- this probably seems like a really dumb question, but I've been
> stuck on it for a little while now...
> 
> I have a MoinMoin wiki that I've been playing with. Somehow, I broke
> the attach file function. When I click on the "Attach File" link, I
> get a SyntaxError: invalid syntax page. The offending line is:
>  text = ' print >>sys.stderr, "save_drawing: tainted path \'%s\',
> aborting!" % filename\012'
> 
> How do I figure out where sys.stderr messages end up? This is running
> on a RedHat 7.3 machine.

In the log file of your web server?

/var/log/apache/error.log or some such.

-- Gerhard




More information about the Python-list mailing list