source: trunk/server/common/patches/httpd-2.2.x-log-docroot.patch @ 1163

Last change on this file since 1163 was 987, checked in by quentin, 15 years ago
Add patch to log document root with every log line
File size: 595 bytes
  • httpd-2.2.8/server/log.c

    old new  
    621621        len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
    622622                            "[client %s] ", c->remote_ip);
    623623    }
     624    if (r) { // Extract the document root and print it
     625      len += apr_sprintf(errstr + len, MAX_STRING_LEN - len,
     626                         "[docroot %s] ", ap_document_root(r));
     627    }
    624628    if (status != 0) {
    625629        if (status < APR_OS_START_EAIERR) {
    626630            len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
Note: See TracBrowser for help on using the repository browser.