| 
                Last change
                  on this file since 1062 was
                  987,
                  checked in by quentin, 17 years ago
           | 
        
        
          | 
            Add patch to log document root with every log line
           | 
        
        | 
            File size:
            595 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [987] | 1 | --- httpd-2.2.8/server/log.c.orig       2009-02-20 01:48:06.000000000 -0500 | 
|---|
 | 2 | +++ httpd-2.2.8/server/log.c    2009-02-20 01:55:40.000000000 -0500 | 
|---|
 | 3 | @@ -621,6 +621,10 @@ | 
|---|
 | 4 |          len += apr_snprintf(errstr + len, MAX_STRING_LEN - len, | 
|---|
 | 5 |                              "[client %s] ", c->remote_ip); | 
|---|
 | 6 |      } | 
|---|
 | 7 | +    if (r) { // Extract the document root and print it | 
|---|
 | 8 | +      len += apr_sprintf(errstr + len, MAX_STRING_LEN - len, | 
|---|
 | 9 | +                        "[docroot %s] ", ap_document_root(r)); | 
|---|
 | 10 | +    } | 
|---|
 | 11 |      if (status != 0) { | 
|---|
 | 12 |          if (status < APR_OS_START_EAIERR) { | 
|---|
 | 13 |              len += apr_snprintf(errstr + len, MAX_STRING_LEN - len, | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.