diff options
author | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 04:25:56 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2008-10-25 04:25:56 (GMT) |
commit | caae8dcfed1462cb19c82f99087e6fe2ba3d407c (patch) | |
tree | c575ead091166c6674111b4d214e87487f38e991 /utility/config.h | |
parent | 19bbdd68a491721dd4aeff7cacea51148ce3a9b9 (diff) |
implemented logging
added better error messages for DB connections
fix several segfaults
Diffstat (limited to 'utility/config.h')
-rw-r--r-- | utility/config.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/utility/config.h b/utility/config.h index 611e9de..763ef5d 100644 --- a/utility/config.h +++ b/utility/config.h | |||
@@ -7,10 +7,11 @@ | |||
7 | #include "ap_pcre.h" | 7 | #include "ap_pcre.h" |
8 | 8 | ||
9 | typedef enum { | 9 | typedef enum { |
10 | LOGLEVEL_QUIET = 0, | 10 | LOGLEVEL_NOISE = 0, |
11 | LOGLEVEL_ERROR = 1, | 11 | LOGLEVEL_NONE, |
12 | LOGLEVEL_WARN = 2, | 12 | LOGLEVEL_ERROR, |
13 | LOGLEVEL_DEBUG = 3, | 13 | LOGLEVEL_NOTICE, |
14 | LOGLEVEL_DEBUG, | ||
14 | } loglevel_e; | 15 | } loglevel_e; |
15 | 16 | ||
16 | typedef struct config_dbd_t config_dbd_t; | 17 | typedef struct config_dbd_t config_dbd_t; |
@@ -25,6 +26,7 @@ struct config_t { | |||
25 | loglevel_e loglevel; | 26 | loglevel_e loglevel; |
26 | /** error_log */ | 27 | /** error_log */ |
27 | apr_file_t *errorlog_fp; | 28 | apr_file_t *errorlog_fp; |
29 | apr_file_t *errorlog_fperr; | ||
28 | apr_pool_t *errorlog_p; | 30 | apr_pool_t *errorlog_p; |
29 | 31 | ||
30 | /** input directory of log files */ | 32 | /** input directory of log files */ |
@@ -59,6 +61,8 @@ struct config_t { | |||
59 | 61 | ||
60 | /** Dry Run */ | 62 | /** Dry Run */ |
61 | int dryrun; | 63 | int dryrun; |
64 | /** dump configuration only */ | ||
65 | int dump; | ||
62 | 66 | ||
63 | /* Show the summary */ | 67 | /* Show the summary */ |
64 | int summary; | 68 | int summary; |