python-version:2.5.4
web.py version:0.36
uwsgi version:1.2
uwsgi.xml:
<uwsgi id='hello'>
<http-socket>0.0.0.0:8888</http-socket>
<pythonpath>/opt/webapp/web_center</pythonpath>
<module>hello</module>
<master>true</master>
<workers>6</workers>
<daemonize>/opt/webapp/web_center/hello.log</daemonize>
<pidfile>/opt/webapp/web_center/hello.pid</pidfile>
<max-requests>50</max-requests>
<logdate>true</logdate>
<buffer-size>65536</buffer-size>
<reload-mercy>10</reload-mercy>
<auto-snapshot>true</auto-snapshot>
<reload-on-exception>true</reload-on-exception>
</uwsgi>
hello.py:
import web
urls = (
'/', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self):
raise Exception('hello')
web.config.debug = False
application = app.wsgifunc()
when request ,in log:
Traceback (most recent call last):
File
"/usr/local/lib/python2.5/site-packages/web.py-0.36-py2.5.egg/web/application.py",
line 237, in process
return self.handle()
File
"/usr/local/lib/python2.5/site-packages/web.py-0.36-py2.5.egg/web/application.py",
line 228, in handle
return self._delegate(fn, self.fvars, args)
File
"/usr/local/lib/python2.5/site-packages/web.py-0.36-py2.5.egg/web/application.py",
line 409, in _delegate
return handle_class(cls)
File
"/usr/local/lib/python2.5/site-packages/web.py-0.36-py2.5.egg/web/application.py",
line 385, in handle_class
return tocall(*args)
File "/opt/webapp/web_center/hello.py", line 10, in GET
raise Exception('hello')
Exception: hello
but reload-on-exception looks not work?
sth wrong?or what shoud i do?
--
人生不过刷牙!!!
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi