先贴一下v2ex的报错(是由于不正常访问引起的哈)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/topic.py", line 368, in post
mc_key_md5 = 'member:' + str(self.member.id) + ':lastreplymd5'
AttributeError: 'NoneType' object has no attribute 'id'
接下来就是问一下大家标题上那个问题,一般你们是只显示500还是让它处于debug模式直接在网页上dump?好像多数framework关闭了debug之后都不会直接在网页上dump,但我看到过有些大型网站也有把报错直接显示在页面上的,这是一种策略吗?
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/topic.py", line 368, in post
mc_key_md5 = 'member:' + str(self.member.id) + ':lastreplymd5'
AttributeError: 'NoneType' object has no attribute 'id'
接下来就是问一下大家标题上那个问题,一般你们是只显示500还是让它处于debug模式直接在网页上dump?好像多数framework关闭了debug之后都不会直接在网页上dump,但我看到过有些大型网站也有把报错直接显示在页面上的,这是一种策略吗?