Andrii Rusanov
Andrii Rusanov

Reputation: 4606

uWSGI: disable logs for given urls

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?

Upvotes: 9

Views: 2445

Answers (1)

roberto
roberto

Reputation: 12933

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

Upvotes: 11

Related Questions