diff options
-rw-r--r-- | mod_log_sql_logio.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mod_log_sql_logio.c b/mod_log_sql_logio.c index 5de477f..95d1763 100644 --- a/mod_log_sql_logio.c +++ b/mod_log_sql_logio.c | |||
@@ -106,7 +106,12 @@ static int logio_pre_conn(conn_rec *c, void *csd) { | |||
106 | return OK; | 106 | return OK; |
107 | } | 107 | } |
108 | 108 | ||
109 | static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s); | 109 | static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) |
110 | { | ||
111 | log_sql_register_item(s,p,'i', log_bytes_in, "bytes_in", 0, 0); | ||
112 | log_sql_register_item(s,p,'o', log_bytes_out, "bytes_out", 0, 0); | ||
113 | return OK; | ||
114 | } | ||
110 | static void register_hooks(apr_pool_t *p) { | 115 | static void register_hooks(apr_pool_t *p) { |
111 | static const char *pre[] = { "mod_log_sql.c", NULL }; | 116 | static const char *pre[] = { "mod_log_sql.c", NULL }; |
112 | 117 | ||
@@ -126,9 +131,3 @@ module AP_MODULE_DECLARE_DATA log_sql_logio_module = { | |||
126 | STANDARD20_MODULE_STUFF, | 131 | STANDARD20_MODULE_STUFF, |
127 | NULL, NULL, NULL, NULL, NULL, register_hooks | 132 | NULL, NULL, NULL, NULL, NULL, register_hooks |
128 | }; | 133 | }; |
129 | static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) | ||
130 | { | ||
131 | log_sql_register_item(s,p,'i', log_bytes_in, "bytes_in", 0, 0); | ||
132 | log_sql_register_item(s,p,'o', log_bytes_out, "bytes_out", 0, 0); | ||
133 | return OK; | ||
134 | } | ||