httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1203634 - in /httpd/httpd/trunk: CHANGES include/ap_mmn.h include/http_log.h server/log.c
Date Fri, 18 Nov 2011 13:10:06 GMT
Author: trawick
Date: Fri Nov 18 13:10:06 2011
New Revision: 1203634

URL: http://svn.apache.org/viewvc?rev=1203634&view=rev
Log:
add conn_rec to error log hook

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/include/ap_mmn.h
    httpd/httpd/trunk/include/http_log.h
    httpd/httpd/trunk/server/log.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1203634&r1=1203633&r2=1203634&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Fri Nov 18 13:10:06 2011
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) error log hook: add conn_rec as a parameter.  [Jeff Trawick]
+
   *) mod_ssl: drop support for the SSLv2 protocol. [Kaspar Brand]
 
   *) mod_lua: Stop losing track of all but the most specific LuaHook* directives

Modified: httpd/httpd/trunk/include/ap_mmn.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/ap_mmn.h?rev=1203634&r1=1203633&r2=1203634&view=diff
==============================================================================
--- httpd/httpd/trunk/include/ap_mmn.h (original)
+++ httpd/httpd/trunk/include/ap_mmn.h Fri Nov 18 13:10:06 2011
@@ -365,6 +365,7 @@
  * 20111025.1 (2.3.15-dev) Add ap_escape_urlencoded(), ap_escape_urlencoded_buffer()
  *                         and ap_unescape_urlencoded().
  * 20111025.2 (2.3.15-dev) Add ap_lua_ssl_val to mod_lua
+ * 20111118.0 (2.5.0-dev)  Add conn_rec to error_log hook
  */
 
 #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */

Modified: httpd/httpd/trunk/include/http_log.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_log.h?rev=1203634&r1=1203633&r2=1203634&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_log.h (original)
+++ httpd/httpd/trunk/include/http_log.h Fri Nov 18 13:10:06 2011
@@ -633,6 +633,7 @@ AP_DECLARE(apr_file_t *) ap_piped_log_wr
  * @param level The level of this error message
  * @param status The status code from the previous command
  * @param s The server which we are logging for
+ * @param c The connection which we are logging for
  * @param r The request which we are logging for
  * @param pool Memory pool to allocate from
  * @param errstr message to log
@@ -640,8 +641,8 @@ AP_DECLARE(apr_file_t *) ap_piped_log_wr
 AP_DECLARE_HOOK(void, error_log, (const char *file, int line,
                        int module_index, int level,
                        apr_status_t status, const server_rec *s,
-                       const request_rec *r, apr_pool_t *pool,
-                       const char *errstr))
+                       const conn_rec *c, const request_rec *r,
+                       apr_pool_t *pool, const char *errstr))
 
 /**
  * hook method to generate unique id for connection or request

Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=1203634&r1=1203633&r2=1203634&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Fri Nov 18 13:10:06 2011
@@ -1264,8 +1264,8 @@ static void log_error_core(const char *f
         if (!log_format) {
             /* only pass the real error string to the hook */
             errstr[errstr_end] = '\0';
-            ap_run_error_log(file, line, module_index, level, status, s, r, pool,
-                             errstr + errstr_start);
+            ap_run_error_log(file, line, module_index, level, status, s, c, r,
+                             pool, errstr + errstr_start);
         }
 
         *errstr = '\0';
@@ -1761,9 +1761,9 @@ AP_DECLARE(const char *) ap_parse_log_le
 AP_IMPLEMENT_HOOK_VOID(error_log,
                        (const char *file, int line, int module_index, int level,
                         apr_status_t status, const server_rec *s,
-                        const request_rec *r, apr_pool_t *pool,
-                        const char *errstr), (file, line, module_index, level,
-                        status, s, r, pool, errstr))
+                        const conn_rec *c, const request_rec *r,
+                        apr_pool_t *pool, const char *errstr), (file, line,
+                        module_index, level, status, s, c, r, pool, errstr))
 
 AP_IMPLEMENT_HOOK_RUN_FIRST(int, generate_log_id,
                             (const conn_rec *c, const request_rec *r,



Mime
View raw message