summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG3
-rw-r--r--mod_log_sql.c25
2 files changed, 24 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 34aed54..a1cab46 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,10 +1,9 @@
1$Id: CHANGELOG,v 1.7 2002/04/02 20:19:30 helios Exp $ 1$Id: CHANGELOG,v 1.8 2002/04/08 06:35:04 helios Exp $
2 2
3 3
4TODO: 4TODO:
5* Full commenting of the code. 5* Full commenting of the code.
6* Rethink documentation flow and rewrite? 6* Rethink documentation flow and rewrite?
7* Config directives for proxy clients
8* Port connection portion to other DBMS? Genericize the module? 7* Port connection portion to other DBMS? Genericize the module?
9 8
10 9
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 61c1ed9..62e9784 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -1,4 +1,4 @@
1/* $Id: mod_log_sql.c,v 1.6 2002/04/02 20:19:30 helios Exp $ */ 1/* $Id: mod_log_sql.c,v 1.7 2002/04/08 06:35:04 helios Exp $ */
2 2
3 3
4/* DEFINES */ 4/* DEFINES */
@@ -350,6 +350,23 @@ static const char *extract_cookie(request_rec *r, char *a)
350 return "-"; 350 return "-";
351} 351}
352 352
353/*
354static const char *extract_forwarded(request_rec *r, char *a)
355{
356 return table_get(r->subprocess_env, "HTTP_FORWARDED");
357}
358
359static const char *extract_via(request_rec *r, char *a)
360{
361 return table_get(r->subprocess_env, "HTTP_VIA");
362}
363
364static const char *extract_forwarded_for(request_rec *r, char *a)
365{
366 return table_get(r->subprocess_env, "HTTP_X_FORWARDED_FOR");
367}
368*/
369
353static const char *extract_request_timestamp(request_rec *r, char *a) 370static const char *extract_request_timestamp(request_rec *r, char *a)
354{ 371{
355 char tstr[32]; 372 char tstr[32];
@@ -365,7 +382,7 @@ static const char *extract_note(request_rec *r, char *a)
365 382
366static const char *extract_env_var(request_rec *r, char *a) 383static const char *extract_env_var(request_rec *r, char *a)
367{ 384{
368 return table_get(r->subprocess_env, a); 385 return table_get(r->subprocess_env, "HTTP_USER_AGENT");
369} 386}
370 387
371/* End declarations of various extract_ functions */ 388/* End declarations of various extract_ functions */
@@ -403,6 +420,10 @@ struct log_mysql_item_list {
403 { 'u', extract_remote_user, "remote_user", 0, 1 }, 420 { 'u', extract_remote_user, "remote_user", 0, 1 },
404 { 'U', extract_request_uri, "request_uri", 1, 1 }, 421 { 'U', extract_request_uri, "request_uri", 1, 1 },
405 { 'v', extract_virtual_host, "virtual_host", 0, 1 }, 422 { 'v', extract_virtual_host, "virtual_host", 0, 1 },
423/* { 'V', extract_via, "via", 0, 1 },
424 { 'w', extract_forwarded, "forwarded", 0, 1 },
425 { 'W', extract_forwarded_for, "forwarded_for", 0, 1 },
426 */
406 #ifdef WANT_SSL_LOGGING 427 #ifdef WANT_SSL_LOGGING
407 { 'q', extract_ssl_keysize, "ssl_keysize", 0, 1 }, 428 { 'q', extract_ssl_keysize, "ssl_keysize", 0, 1 },
408 { 'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1 }, 429 { 'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1 },