[英]“Warning: We detected the use of uwsgi with disabled threads” when using Sentry/Raven with Django and PythonAnywhere
在Sentry / Raven中使用Django,我经常遇到以下错误:
/lib/python3.6/site-packages/raven/utils/compat.py:216: Warning: We detected the use of uwsgi with disabled threads. This will cause issues with the transport you are trying to use. Please enable threading for uwsgi. (Enable the "enable-threads" flag).
因此,具有讽刺意味的是,错误似乎出自乌鸦本身。
看来我需要为uwsgi启用线程。 但是,据我所知,PythonAnywhere不支持线程(对吗?)。
如何防止这些错误出现? 除了这些报告之外,它们是否还会造成任何损害? 它们似乎根本没有影响用户体验。
注意:我在Sentry github上发现了这个线程 ,它似乎引用了相同的问题,但是我不确定如何从这里开始。
enable-threads
允许哨兵掠夺者在线程中发送消息,而不阻止您的应用程序。 因此,应该建议启用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.