Ne peut pas accéder journal de travailler pour gunicorn

Je suis en cours d'exécution gunicorn derrière ngninx. Je veux enregistrer les erreurs dans gunicorn à gunicorn-erreur.journal et les journaux d'accès à gunicorn d'accès.journal.

J'ai le journal de travail, mais pas le journal d'accès, ce que je fais mal?

C'est mon gunicorn.conf.py:

bind = '127.0.0.1:8888'
backlog = 2048
workers = 3
errorlog = '/home/my/logs/gunicorn-error.log'
accesslog = '/home/my/logs/gunicorn-access.log'
loglevel = 'debug'
proc_name = 'gunicorn-my'
pidfile = '/var/run/my.pid'

C'est le script à exécuter gunicorn:

#!/bin/bash
set -e
ENV=/home/my/env/bin/activate
GUNICORN=gunicorn_django
SETTINGS_PATH=/home/my/app/app/settings
PROJECT_PATH=/home/my/app
CONFROOT=/home/my/app/conf/gunicorn.conf.py

cd $SETTINGS_PATH
source $ENV
export PYTHONPATH=$PROJECT_PATH
exec $GUNICORN app.settings.staging -c $CONFROOT

Il crée à la fois gunicorn-erreur.journal et gunicorn d'accès.journal, mais seulement gunicorn-erreur.le journal reçoit tous les journaux, par exemple:

2012-11-20 11:49:57 [27817] [INFO] Starting gunicorn 0.14.6
2012-11-20 11:49:57 [27817] [DEBUG] Arbiter booted
2012-11-20 11:49:57 [27817] [INFO] Listening at: http://127.0.0.1:8888 (27817)
2012-11-20 11:49:57 [27817] [INFO] Using worker: sync
2012-11-20 11:49:58 [27825] [INFO] Booting worker with pid: 27825
2012-11-20 11:49:58 [27828] [INFO] Booting worker with pid: 27828
2012-11-20 11:49:58 [27830] [INFO] Booting worker with pid: 27830

Ce que je fais mal? N'importe qui veulent partager leur travail gunicorn.conf.py avec les journaux d'erreurs et d'accès aux archives?

InformationsquelleAutor Mikael | 2012-11-20