How to disable request logging in Django and uWSGI?

serg picture serg · Mar 23, 2016 · Viewed 9.7k times · Source

My uWSGI logs are full of entries like this for every request:

localhost [pid: 4029|app: 0|req: 1/1] 127.0.0.1 () {48 vars in 906 bytes} [Wed Mar 23 18:35:38 2016] GET / => generated 94847 bytes in 1137 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0)

I'm not sure if it's uWSGI spamming them or Django. How can I disable the request logging?

Answer

Aaron Lelevier picture Aaron Lelevier · Mar 23, 2016

What does your uwsgi.ini look like? That's where you'd want to disable logging.

Set: disable-logging=True

Here's the docs:

http://uwsgi-docs.readthedocs.org/en/latest/Options.html#disable-logging