From 86508e66abab9d856dfa7661db8050c86f4d4e5f Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 9 Nov 2010 19:24:45 +0000 Subject: [PATCH] support error log id as variables git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033167 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/expr.xml | 4 ++++ server/util_expr_eval.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/docs/manual/expr.xml b/docs/manual/expr.xml index 67fd7a47b74..b3ef8e9305e 100644 --- a/docs/manual/expr.xml +++ b/docs/manual/expr.xml @@ -169,6 +169,10 @@ listfunction ::= listfuncname "(" word ")" IPV6 + REQUEST_LOG_ID + + CONN_LOG_ID + diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c index 1901666fa29..c136b50d37e 100644 --- a/server/util_expr_eval.c +++ b/server/util_expr_eval.c @@ -831,6 +831,7 @@ static const char *conn_var_names[] = { "REMOTE_ADDR", /* 0 */ "HTTPS", /* 1 */ "IPV6", /* 2 */ + "CONN_LOG_ID", /* 3 */ NULL }; @@ -862,6 +863,8 @@ static const char *conn_var_fn(ap_expr_eval_ctx *ctx, const void *data) #else return "off"; #endif + case 3: + return c->log_id; default: ap_assert(0); return NULL; @@ -889,6 +892,7 @@ static const char *request_var_names[] = { "THE_REQUEST", /* 17 */ "CONTENT_TYPE", /* 18 */ "HANDLER", /* 19 */ + "REQUEST_LOG_ID", /* 20 */ NULL }; @@ -941,6 +945,8 @@ static const char *request_var_fn(ap_expr_eval_ctx *ctx, const void *data) return r->content_type; case 19: return r->handler; + case 20: + return r->log_id; default: ap_assert(0); return NULL; -- 2.47.2