diff --git a/README.md b/README.md index f444953..ce0be14 100644 --- a/README.md +++ b/README.md @@ -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 = ` - [x] enable CloudFlare ACL when `NGINX_CLOUDFLARE_ACL = True` - [x] Autodetect SPDY/HTTPv2 support and activate it diff --git a/piku.py b/piku.py index 8b53afc..76d4a99 100644 --- a/piku.py +++ b/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)))