How to log only 5xx errors on uWSGI

前端 未结 1 905
夕颜
夕颜 2021-01-12 13:17

I want to let uWSGI only logging server errors and avoid the normal requests logs, because the file grow very fast, and all the requests logging does NGINX very well for me.

相关标签:
1条回答
  • 2021-01-12 13:59

    Finally the solution was quite simple:

    logto = /var/log/uwsgi/uwsgi.log
    log-5xx = true
    disable-logging = true
    

    According to the help:

    -L|--disable-logging disable request logging

    0 讨论(0)
提交回复
热议问题