Make logging less verbose

Hi all,

is there a way to make logging less verbose? The documentation talks about available log levels, but never mentions WHICH ones are actually valid.

It seems that I’ve managed to decrease the number of log entries by setting

level = WARN

wherever appropriate (Or should it be WARNING???)

However gunicorn still produces a totally insane number of access logs which I’m just not interested in at the moment:

2019-11-27 20:54:24.275 [<17531> ] GNCRN 127.0.0.1 rqt:0.004114 200 65407 "POST:/hg " usr:- "-" "PycURL/7.43.0.2 libcurl/7.59.0 OpenSSL/1.0.2p zlib/1.2.11 libssh2/1.8.0 nghttp2/1.24.0"

How can I get rid of these and only log actual warnings?

Regards
JM

Hi Jasper,

Gunicorn logging is actually controlled by gunicorn_conf.py file. You could edit that file (it’s next to rhodecode.ini) and set loglevel=‘warn’ there as well.

Both ‘warn’ / ‘warning’ formats are ok.

Thanks for feedback, we’ll make use of it and provide better documentation on this matter !

Best,