In a cloud app, it's better to:
This article will tell you how to make Gunicorn do this.
gunicorn --access-logfile '-' --error-logfile '-' app:app
If you prefer to use the config file, try this:
gunicorn -c config.py app:app
The file config.py
should contain:
accesslog = '-'
errorlog = '-'