Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable request logging in Django and uWSGI?

Tags:

django

uwsgi

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?

like image 770
serg Avatar asked Mar 23 '16 18:03

serg


2 Answers

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

like image 93
Aaron Lelevier Avatar answered Nov 18 '22 11:11

Aaron Lelevier


Or from the console with:

uwsgi --disable-logging
like image 44
g.breeze Avatar answered Nov 18 '22 11:11

g.breeze