Sane uWSGI log format for web requests

pull/7/head
Rui Carmo 2016-05-14 18:56:15 +01:00
rodzic 196615c9a2
commit 408f503044
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,7 @@ From the bottom up:
- [ ] Support Go deployments (in progress)
- [ ] CLI command documentation
- [ ] nginx SSL optimization/cypher suites, own certificates
- [ ] saner uWSGI logging
- [x] `gevent` activated when `UWSGI_GEVENT = <integer>`
- [x] enable CloudFlare ACL when `NGINX_CLOUDFLARE_ACL = True`
- [x] Autodetect SPDY/HTTPv2 support and activate it

Wyświetl plik

@ -473,6 +473,9 @@ def spawn_worker(app, kind, command, env, ordinal=1):
else:
settings.append(('attach-daemon', command))
if kind in ['wsgi','web']:
settings.append(('log-format','%%(addr) - %%(user) [%%(ltime)] "%%(method) %%(uri) %%(proto)" %%(status) %%(size) "%%(referer)" "%%(uagent)" %%(msecs)ms'))
for k, v in env.iteritems():
settings.append(('env', '%s=%s' % (k,v)))