Daniel Rubin
dlrubin at yahoo.com
Thu Jul 3 07:30:13 EST 2003
The problem is that the xmlrpc.py script on the server dies at a line of code that doesn't cause an Exception to be thrown, so nothing executes after that line of code and lines calling a log event will never get executed. And for some reason, no error message is appearing in the apache error log (I have a pretty standard httpd.conf). --- "Gregory (Grisha) Trubetskoy" <grisha at modpython.org> wrote: > > 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 > > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
|