uWSGI: disable logs for given urls

只谈情不闲聊 提交于 2019-12-02 06:25:09

问题


I need to disable uWSGI logs just for one url. I played around uWSGI config but didn't find anything that can helps(maybe route directive, but it didn't give me required result). Do you have any ideas about it?


回答1:


Use its internal routing framework with the donotlog action:

route = ^foo donotlog:

But ensure your instance has internal routing support compiled in (if not you should see a warning in the startup logs).



来源:https://stackoverflow.com/questions/25679166/uwsgi-disable-logs-for-given-urls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!