summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index ba60089..6d3110c 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -1,4 +1,4 @@
1/* $Id: mod_log_sql.c,v 1.17 2002/11/14 03:51:35 helios Exp $ */ 1/* $Id: mod_log_sql.c,v 1.18 2002/11/14 22:52:54 helios Exp $ */
2 2
3/* --------* 3/* --------*
4 * DEFINES * 4 * DEFINES *
@@ -68,7 +68,6 @@ typedef const char *(*item_key_func) (request_rec *, char *);
68 */ 68 */
69typedef struct { 69typedef struct {
70 int table_made; 70 int table_made;
71 array_header *referer_ignore_list;
72 array_header *transfer_ignore_list; 71 array_header *transfer_ignore_list;
73 array_header *remhost_ignore_list; 72 array_header *remhost_ignore_list;
74 array_header *notes_list; 73 array_header *notes_list;
@@ -1003,16 +1002,6 @@ const char *set_log_sql_tcp_port(cmd_parms *parms, void *dummy, char *arg)
1003 return NULL; 1002 return NULL;
1004} 1003}
1005 1004
1006const char *add_log_sql_referer_ignore(cmd_parms *parms, void *dummy, char *arg)
1007{
1008 char **addme;
1009 log_sql_state *cls = get_module_config(parms->server->module_config, &sql_log_module);
1010
1011 addme = push_array(cls->referer_ignore_list);
1012 *addme = pstrdup(cls->referer_ignore_list->pool, arg);
1013 return NULL;
1014}
1015
1016const char *add_log_sql_transfer_ignore(cmd_parms *parms, void *dummy, char *arg) 1005const char *add_log_sql_transfer_ignore(cmd_parms *parms, void *dummy, char *arg)
1017{ 1006{
1018 char **addme; 1007 char **addme;
@@ -1158,7 +1147,6 @@ void *log_sql_make_state(pool *p, server_rec *s)
1158 cls->cookie_table_name = "cookies"; 1147 cls->cookie_table_name = "cookies";
1159 cls->preserve_file = "/tmp/sql-preserve"; 1148 cls->preserve_file = "/tmp/sql-preserve";
1160 1149
1161 cls->referer_ignore_list = make_array(p, 1, sizeof(char *));
1162 cls->transfer_ignore_list = make_array(p, 1, sizeof(char *)); 1150 cls->transfer_ignore_list = make_array(p, 1, sizeof(char *));
1163 cls->remhost_ignore_list = make_array(p, 1, sizeof(char *)); 1151 cls->remhost_ignore_list = make_array(p, 1, sizeof(char *));
1164 cls->notes_list = make_array(p, 1, sizeof(char *)); 1152 cls->notes_list = make_array(p, 1, sizeof(char *));
@@ -1197,9 +1185,6 @@ command_rec log_sql_cmds[] = {
1197 {"LogSQLMachineID", set_log_sql_machine_id, NULL, RSRC_CONF, TAKE1, 1185 {"LogSQLMachineID", set_log_sql_machine_id, NULL, RSRC_CONF, TAKE1,
1198 "Machine ID that the module will log, useful in web clusters to differentiate machines"} 1186 "Machine ID that the module will log, useful in web clusters to differentiate machines"}
1199 , 1187 ,
1200 {"LogSQLRefererIgnore", add_log_sql_referer_ignore, NULL, RSRC_CONF, ITERATE,
1201 "List of referers to ignore. Accesses that match will not be logged to database"}
1202 ,
1203 {"LogSQLRequestIgnore", add_log_sql_transfer_ignore, NULL, RSRC_CONF, ITERATE, 1188 {"LogSQLRequestIgnore", add_log_sql_transfer_ignore, NULL, RSRC_CONF, ITERATE,
1204 "List of URIs to ignore. Accesses that match will not be logged to database"} 1189 "List of URIs to ignore. Accesses that match will not be logged to database"}
1205 , 1190 ,