在服务器上装好了sentry客户端用一个测试代码,根据这个来的
http://raven.readthedocs.org/en/latest/integrations/logging.htmllogger.error('There was some %s error', 'crazy')
这样没有问题,服务器端登陆网页能看到信息被记录下来,但如果这样
logger.error('There was some crazy error', exc_info=True)
就会出现这样的错误:
```
Top level Sentry exception caught - failed creating log record
b'There was some crazy error'
b'Traceback (most recent call last):\n File "C:\\Python33\\lib\\site-packages\\raven\\handlers\\
logging.py", line 59, in emit\n self.format(record)\n File "C:\\Python33\\lib\\logging\\
__init__.py", line 808, in format\n return fmt.format(record)\n File "C:\\Python33\\lib\\logging\\
__init__.py", line 554, in format\n record.exc_text = self.formatException(record.exc_info)\n File "C:\\Python33\\lib\\logging\\
__init__.py", line 504, in formatException\n traceback.print_exception(ei[0], ei[1], tb, None, sio)\n File "C:\\Python33\\lib\\
traceback.py", line 156, in print_exception\n for value, tb in values:\n File "C:\\Python33\\lib\\
traceback.py", line 122, in _iter_chain\n context = exc.__context__\nAttributeError: \'NoneType\' object has no attribute \'__context__\'\n'
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-Break to quit
```
请问是怎么回事
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/213039
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.