diff options
author | Edward Rudd <urkle@outoforder.cc> | 2008-10-26 00:11:22 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2008-10-26 00:11:22 (GMT) |
commit | 017c8fdf246df82385fb0222890be85c461d0275 (patch) | |
tree | 6c654f1b6d350eecf481154cf71823f626478d8e /utility/util.c | |
parent | a72d191594161a01fb773e9d8f4b565805795b10 (diff) |
implement filter support
add in check for Apache 1.3 apr_dbd_transaction_mode_set method
add transaction stubs
Diffstat (limited to 'utility/util.c')
-rw-r--r-- | utility/util.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/utility/util.c b/utility/util.c index 7ecb902..45b95ba 100644 --- a/utility/util.c +++ b/utility/util.c | |||
@@ -124,11 +124,15 @@ int ap_unescape_url(char *url) | |||
124 | #endif | 124 | #endif |
125 | } | 125 | } |
126 | 126 | ||
127 | void logging_init(config_t *cfg) | 127 | void logging_preinit(config_t *cfg) |
128 | { | 128 | { |
129 | apr_status_t rv; | ||
130 | apr_pool_create(&cfg->errorlog_p, cfg->pool); | 129 | apr_pool_create(&cfg->errorlog_p, cfg->pool); |
131 | apr_file_open_stderr(&cfg->errorlog_fperr, cfg->pool); | 130 | apr_file_open_stderr(&cfg->errorlog_fperr, cfg->pool); |
131 | } | ||
132 | |||
133 | void logging_init(config_t *cfg) | ||
134 | { | ||
135 | apr_status_t rv; | ||
132 | if (cfg->errorlog) { | 136 | if (cfg->errorlog) { |
133 | rv = apr_file_open(&cfg->errorlog_fp, cfg->errorlog, | 137 | rv = apr_file_open(&cfg->errorlog_fp, cfg->errorlog, |
134 | APR_FOPEN_CREATE | APR_FOPEN_WRITE | APR_FOPEN_APPEND, | 138 | APR_FOPEN_CREATE | APR_FOPEN_WRITE | APR_FOPEN_APPEND, |
@@ -170,7 +174,7 @@ void logging_log(config_t *cfg, loglevel_e level, const char *fmt, ...) | |||
170 | if (level == LOGLEVEL_NOISE) { | 174 | if (level == LOGLEVEL_NOISE) { |
171 | apr_file_writev(cfg->errorlog_fperr,vec,2,&blen); | 175 | apr_file_writev(cfg->errorlog_fperr,vec,2,&blen); |
172 | } | 176 | } |
173 | if (cfg->loglevel > LOGLEVEL_NONE) { | 177 | if (cfg->loglevel > LOGLEVEL_NONE && cfg->errorlog_fp) { |
174 | apr_file_writev(cfg->errorlog_fp,vec,2,&blen); | 178 | apr_file_writev(cfg->errorlog_fp,vec,2,&blen); |
175 | } | 179 | } |
176 | 180 | ||