[mod_python] problem creating an instance and debugging

Gregory (Grisha) Trubetskoy grisha at modpython.org
Thu Jul 3 09:46:00 EST 2003


Why not just use apache.log_error or req.log_error?

http://www.modpython.org/live/current/doc-html/pyapi-apmeth.html#l2h-18

On Wed, 2 Jul 2003, Daniel Rubin wrote:

> Putting sys.stderr.flush() into my xmlrpc.py doesn't
> cause anything to get written to the apache log file.
> I've even tried sys.stderr.write("stuff") and it
> doesn't seem to appear anywhere (console nor apache
> logs). Is there no way to track what's going on in the
> code running on the server side in mod_python?
>
> Thanks,
> Daniel
>
>
> --- Gregory Bond <gnb at itga.com.au> wrote:
> > > working and I'm unable to get mod_python to record
> > any
> > > error messages about this particular event to the
> > > apache error log.
> >
> > stderr in mod_python goes to the apache error log
> > but it is buffered.  You
> > need to use sys.stderr.flush() at appropriate times.
> >
> > See FAQ 2.3:
> >
> >
> http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.003.htp
> >
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list