From 1bdec68fb76ff345dbd8f198324cca581a095f18 Mon Sep 17 00:00:00 2001 From: Roberta Giordano Date: Sun, 27 Jan 2013 09:34:55 +0100 Subject: [PATCH] added uagent to logvars --- core/logging.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/logging.c b/core/logging.c index 6b16fbe2..ca504837 100644 --- a/core/logging.c +++ b/core/logging.c @@ -1047,6 +1047,10 @@ void uwsgi_add_logchunk(int variable, int pos, char *ptr, size_t len) { logchunk->pos = offsetof(struct wsgi_request, protocol); logchunk->pos_len = offsetof(struct wsgi_request, protocol_len); } + else if (!uwsgi_strncmp(ptr, len, "uagent", 6)) { + logchunk->pos = offsetof(struct wsgi_request, user_agent); + logchunk->pos_len = offsetof(struct wsgi_request, user_agent_len); + } else if (!uwsgi_strncmp(ptr, len, "status", 6)) { logchunk->type = 3; logchunk->func = uwsgi_lf_status;