Browse Source

Add logging.

master
Ben Kurtovic 8 years ago
parent
commit
2906830310
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +6
    -0
      uwsgi.ini

+ 1
- 0
.gitignore View File

@@ -4,6 +4,7 @@ venv/


config/* config/*
data/* data/*
logs/


!config/config.yml.sample !config/config.yml.sample
!data/schema.sql !data/schema.sql

+ 6
- 0
uwsgi.ini View File

@@ -3,8 +3,14 @@ socket = 127.0.0.1:9001
wsgi-file = app.py wsgi-file = app.py
callable = app callable = app
virtualenv = venv virtualenv = venv

processes = 1 processes = 1
threads = 4 threads = 4

uid = www-data uid = www-data
gid = www-data gid = www-data

stats = 127.0.0.1:9002 stats = 127.0.0.1:9002

logger = file:logs/uwsgi.log
log-maxsize = 10000000

Loading…
Cancel
Save