uWSGI:禁用给定URL的日志 [英] uWSGI: disable logs for given urls
本文介绍了uWSGI:禁用给定URL的日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只需要为一个URL禁用uWSGI日志.我玩过uWSGI配置,但没有找到任何可以帮助的内容(也许是route指令,但没有给我所需的结果). 您对此有任何想法吗?
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?
推荐答案
使用其内部路由框架,并带有donotlog
动作:
route = ^foo donotlog:
但是请确保您的实例具有内部路由支持(如果没有,则应该在启动日志中看到警告).
But ensure your instance has internal routing support compiled in (if not you should see a warning in the startup logs).
这篇关于uWSGI:禁用给定URL的日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文