From 29068303105812edae357b86915c9c32306c6432 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 19 Dec 2016 22:42:09 -0500 Subject: [PATCH] Add logging. --- .gitignore | 1 + uwsgi.ini | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 58db2e9..f666b76 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ venv/ config/* data/* +logs/ !config/config.yml.sample !data/schema.sql diff --git a/uwsgi.ini b/uwsgi.ini index a693c6e..beb48c6 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -3,8 +3,14 @@ socket = 127.0.0.1:9001 wsgi-file = app.py callable = app virtualenv = venv + processes = 1 threads = 4 + uid = www-data gid = www-data + stats = 127.0.0.1:9002 + +logger = file:logs/uwsgi.log +log-maxsize = 10000000