diff options
author | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 16:44:17 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 16:44:17 (GMT) |
commit | 19e09e15d96fa891d18fd07bb0f751faa0a7fc7a (patch) | |
tree | 77da4c55a5c91713184a1344cca6270ae8fd0afe /utility/config.c | |
parent | caae8dcfed1462cb19c82f99087e6fe2ba3d407c (diff) |
implement query arg extracter
"merge in" ap_unescape_url from HTTPD
updated logging statements
add per-line func data and per-func data
Diffstat (limited to 'utility/config.c')
-rw-r--r-- | utility/config.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/utility/config.c b/utility/config.c index b1e7585..fca2f77 100644 --- a/utility/config.c +++ b/utility/config.c | |||
@@ -320,15 +320,19 @@ apr_status_t config_check(config_t *cfg) | |||
320 | { | 320 | { |
321 | apr_status_t ret = APR_SUCCESS; | 321 | apr_status_t ret = APR_SUCCESS; |
322 | if (!cfg->dbdriver || !cfg->dbparams) { | 322 | if (!cfg->dbdriver || !cfg->dbparams) { |
323 | logging_log(cfg, LOGLEVEL_NOISE, "Database configuration is missing\n"); | 323 | logging_log(cfg, LOGLEVEL_NOISE, "CONFIG: Database configuration is missing"); |
324 | ret = APR_EINVAL; | 324 | ret = APR_EINVAL; |
325 | } | 325 | } |
326 | if (!cfg->table) { | 326 | if (!cfg->table) { |
327 | logging_log(cfg, LOGLEVEL_NOISE, "No Log Table defined\n"); | 327 | logging_log(cfg, LOGLEVEL_NOISE, "CONFIG: No Log Table defined"); |
328 | ret = APR_EINVAL; | 328 | ret = APR_EINVAL; |
329 | } | 329 | } |
330 | if (apr_is_empty_array(cfg->output_fields)) { | 330 | if (apr_is_empty_array(cfg->output_fields)) { |
331 | logging_log(cfg, LOGLEVEL_NOISE, "No Output Fields Defined\n"); | 331 | logging_log(cfg, LOGLEVEL_NOISE, "CONFIG: No Output Fields Defined"); |
332 | ret = APR_EINVAL; | ||
333 | } | ||
334 | if (apr_hash_count(cfg->log_formats)==0) { | ||
335 | logging_log(cfg, LOGLEVEL_NOISE, "CONFIG: No Input Log Formats Defined"); | ||
332 | ret = APR_EINVAL; | 336 | ret = APR_EINVAL; |
333 | } | 337 | } |
334 | return ret; | 338 | return ret; |