From 3e2115aa216b726edd4d78e1eab76a582a09ef3e Mon Sep 17 00:00:00 2001 From: "roberto@quantal64" Date: Sun, 8 Jul 2012 19:10:40 +0200 Subject: [PATCH] added proto logvar --- logging.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logging.c b/logging.c index 91dee020..ece8a73b 100644 --- a/logging.c +++ b/logging.c @@ -641,6 +641,10 @@ void uwsgi_add_logchunk(int variable, int pos, char *ptr, size_t len) { logchunk->pos = offsetof(struct wsgi_request, host); logchunk->pos_len = offsetof(struct wsgi_request, host_len); } + else if (!uwsgi_strncmp(ptr, len, "proto", 5)) { + logchunk->pos = offsetof(struct wsgi_request, protocol); + logchunk->pos_len = offsetof(struct wsgi_request, protocol_len); + } else if (!uwsgi_strncmp(ptr, len, "status", 6)) { logchunk->type = 3; logchunk->func = uwsgi_lf_status;