Recently, there was the question of how to disable logging in Python Flask for a specific endpoint (Skip Flask logging for one endpoint?).
This makes sense for example for /healthcheck
which you don't want to clutter your logs.
I solved this for Flask, but when running Flask using Gunicorn my solution doesn't work anymore.
How do I achieve this using Gunicorn? I want regular logging behavior, but not have any logs for the /healthcheck
endpoint.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…