diff options
author | Stefan Fritsch <sf@apache.org> | 2010-11-09 20:24:45 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-11-09 20:24:45 +0100 |
commit | 86508e66abab9d856dfa7661db8050c86f4d4e5f (patch) | |
tree | 1f9e0a8d7b6be85dd84ab80d3a4190a39809abc0 /server/util_expr_eval.c | |
parent | Add support for conditional logging depending on an expression. (diff) | |
download | apache2-86508e66abab9d856dfa7661db8050c86f4d4e5f.tar.xz apache2-86508e66abab9d856dfa7661db8050c86f4d4e5f.zip |
support error log id as variables
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033167 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | server/util_expr_eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c index 1901666fa2..c136b50d37 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; |