How to disable query logging in Django and uWSGI?

My uWSGI logs have entries like this for every request:

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

I'm not sure if this is uWSGI by sending them or Django. How to disable query logging?

+9
source share
2 answers

What does your uwsgi.ini look like? This is where you want to disable logging.

Set: disable-logging=True

Here's the docs:

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

+16
source

Or from the console with:

 uwsgi --disable-logging 
0
source

Source: https://habr.com/ru/post/1245651/


All Articles