MCPcopy Create free account
hub / github.com/apache/httpd / ap_log_rerror_

Function ap_log_rerror_

server/log.c:1404–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402}
1403
1404AP_DECLARE(void) ap_log_rerror_(const char *file, int line, int module_index,
1405 int level, apr_status_t status,
1406 const request_rec *r, const char *fmt, ...)
1407{
1408 va_list args;
1409
1410 va_start(args, fmt);
1411 log_error_core(file, line, module_index, level, status, r->server, NULL, r,
1412 NULL, fmt, args);
1413
1414 /*
1415 * IF APLOG_TOCLIENT is set,
1416 * AND the error level is 'warning' or more severe,
1417 * AND there isn't already error text associated with this request,
1418 * THEN make the message text available to ErrorDocument and
1419 * other error processors.
1420 */
1421 va_end(args);
1422 va_start(args,fmt);
1423 if ((level & APLOG_TOCLIENT)
1424 && ((level & APLOG_LEVELMASK) <= APLOG_WARNING)
1425 && (apr_table_get(r->notes, "error-notes") == NULL)) {
1426 apr_table_setn(r->notes, "error-notes",
1427 ap_escape_html(r->pool, apr_pvsprintf(r->pool, fmt,
1428 args)));
1429 }
1430 va_end(args);
1431}
1432
1433AP_DECLARE(void) ap_log_cserror_(const char *file, int line, int module_index,
1434 int level, apr_status_t status,

Callers

nothing calls this directly

Calls 1

log_error_coreFunction · 0.85

Tested by

no test coverage detected