Commit 338e7482 authored by ale's avatar ale

add gunicorn logging config (syslog); bump version

parent dec67fa9
......@@ -34,6 +34,7 @@ test ${NO_START} -eq 1 && exit 0
. /lib/lsb/init-functions
GUNICORN_OPTS="
--log-config=/etc/sso/logging.conf
--bind 127.0.0.1:${SSO_PORT}
--worker-class gevent
--daemon --pid ${PIDFILE}
......
[loggers]
keys=root, gunicorn.error
[handlers]
keys=syslog
[formatters]
keys=generic
[logger_root]
level=INFO
handlers=syslog
[logger_gunicorn.error]
level=INFO
handlers=syslog
qualname=gunicorn.error
[handler_syslog]
class=logging.handlers.SysLogHandler
formatter=generic
args=('/dev/log',)
[formatter_generic]
format=sso_server[%(process)d] %(levelname)s: %(message)s
class=logging.Formatter
ai-sso (2.0.2) unstable; urgency=medium
* Logging fixes.
-- Autistici/Inventati <debian@autistici.org> Sun, 18 Jan 2015 19:05:08 +0000
ai-sso (2.0.1) unstable; urgency=low
* OTP support.
......
......@@ -58,6 +58,8 @@ install: build
install -d $(CURDIR)/debian/ai-sso-server/etc/sso
install -o root -g root -m 644 debian/ai-sso-server.config-dist \
$(CURDIR)/debian/ai-sso-server/etc/sso/config.dist
install -o root -g root -m 644 debian/ai-sso-server_logging.conf \
$(CURDIR)/debian/ai-sso-server/etc/sso/logging.conf
#for v in $(PYVERS); do \
#install -d $(CURDIR)/debian/ai-sso-server/usr/lib/python$$v/site-packages/libsso ; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment