kopia lustrzana https://github.com/piku/piku
Sane uWSGI log format for web requests
rodzic
196615c9a2
commit
408f503044
|
@ -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
|
||||
|
|
3
piku.py
3
piku.py
|
@ -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)))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue