diff options
| author | 2004-04-04 07:45:30 +0000 | |
|---|---|---|
| committer | 2004-04-04 07:45:30 +0000 | |
| commit | 812bc70dae80637548a0ccfab649f8912a09faf5 (patch) | |
| tree | b0410deed7f35f9db952bf51aa3770a9cb9b0a68 /apache13.h | |
| parent | bf387bc750caf37fe2cbe45a901161861fc50b01 (diff) | |
Updated to new logging function with apaceh 2 prototype instead of 1.3 so i can properly log Error numbers in apache 2 (better debugging)
Diffstat (limited to 'apache13.h')
| -rw-r--r-- | apache13.h | 11 |
1 files changed, 2 insertions, 9 deletions
| @@ -14,13 +14,6 @@ | |||
| 14 | #define APR_SUCCESS 0 | 14 | #define APR_SUCCESS 0 |
| 15 | #define APR_OFFSETOF XtOffsetOf | 15 | #define APR_OFFSETOF XtOffsetOf |
| 16 | 16 | ||
| 17 | /*AP_INIT_TAKE1("LogSQLTransferLogTable", set_server_nmv_string_slot, | ||
| 18 | (void *)APR_OFFSETOF(logsql_state, transfer_table_name), RSRC_CONF, | ||
| 19 | "The database table that holds the transfer log") | ||
| 20 | |||
| 21 | {"LogSQLTransferLogTable", set_log_sql_transfer_table, NULL, RSRC_CONF, TAKE1, | ||
| 22 | "The database table that holds the transfer log"}*/ | ||
| 23 | |||
| 24 | /** method of declaring a directive which takes 1 argument */ | 17 | /** method of declaring a directive which takes 1 argument */ |
| 25 | # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ | 18 | # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ |
| 26 | { directive, func, mconfig, where, TAKE1, help } | 19 | { directive, func, mconfig, where, TAKE1, help } |
| @@ -66,8 +59,8 @@ | |||
| 66 | 59 | ||
| 67 | #define apr_tolower ap_tolower | 60 | #define apr_tolower ap_tolower |
| 68 | 61 | ||
| 69 | static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); | 62 | static void log_error(char *file, int line, int level, apr_status_t status, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); |
| 70 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) | 63 | static inline void log_error(char *file, int line, int level, apr_status_t status, const server_rec *s, const char *fmt, ...) |
| 71 | { | 64 | { |
| 72 | static char buff[MAX_STRING_LEN]; | 65 | static char buff[MAX_STRING_LEN]; |
| 73 | va_list args; | 66 | va_list args; |
