Lines 1507-1512
Link Here
|
1507 |
|
1507 |
|
1508 |
return OK; |
1508 |
return OK; |
1509 |
} |
1509 |
} |
|
|
1510 |
static void log_configtest(apr_pool_t *p, server_rec *s) |
1511 |
{ |
1512 |
apr_status_t rc; |
1513 |
/* We check if we can open atleast the error file. |
1514 |
*/ |
1515 |
if ((rc = apr_file_open(&s->error_log, s->error_fname, APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE, |
1516 |
APR_OS_DEFAULT, p)) != APR_SUCCESS) { |
1517 |
ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL, |
1518 |
"could not open error log file %s.",s->error_fname); |
1519 |
} else { |
1520 |
apr_file_close(s->error_log); |
1521 |
} |
1522 |
} |
1510 |
|
1523 |
|
1511 |
static void register_hooks(apr_pool_t *p) |
1524 |
static void register_hooks(apr_pool_t *p) |
1512 |
{ |
1525 |
{ |
Lines 1514-1519
Link Here
|
1514 |
ap_hook_child_init(init_child,NULL,NULL,APR_HOOK_MIDDLE); |
1527 |
ap_hook_child_init(init_child,NULL,NULL,APR_HOOK_MIDDLE); |
1515 |
ap_hook_open_logs(init_config_log,NULL,NULL,APR_HOOK_MIDDLE); |
1528 |
ap_hook_open_logs(init_config_log,NULL,NULL,APR_HOOK_MIDDLE); |
1516 |
ap_hook_log_transaction(multi_log_transaction,NULL,NULL,APR_HOOK_MIDDLE); |
1529 |
ap_hook_log_transaction(multi_log_transaction,NULL,NULL,APR_HOOK_MIDDLE); |
|
|
1530 |
ap_hook_test_config(log_configtest,NULL,NULL,APR_HOOK_MIDDLE); |
1517 |
|
1531 |
|
1518 |
/* Init log_hash before we register the optional function. It is |
1532 |
/* Init log_hash before we register the optional function. It is |
1519 |
* possible for the optional function, ap_register_log_handler, |
1533 |
* possible for the optional function, ap_register_log_handler, |