Added ability to audit failed request.

Prepare for 2.1.2-rc2.
This commit is contained in:
brectanus
2007-07-19 18:16:51 +00:00
parent 90fc9a2070
commit f15d9e0f23
3 changed files with 14 additions and 2 deletions

View File

@@ -687,6 +687,15 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
if (r == NULL) return;
msr = retrieve_tx_context((request_rec *)r);
/* Create a context for requests we never had the chance to process */
/* TODO: This needs more testing */
if (level & APLOG_ERR) {
if (msr == NULL && apr_table_get(r->subprocess_env, "UNIQUE_ID")) {
msr = create_tx_context((request_rec *)r);
}
}
if (msr == NULL) return;
/* Store the error message for later */