uWSGI: disable logs for given urls

2020-04-16 03:47发布

问题:

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).