]> granicus.if.org Git - apache/commitdiff
We really need some place where we can place a whole
authorJim Jagielski <jim@apache.org>
Tue, 3 Jun 2014 15:22:37 +0000 (15:22 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 3 Jun 2014 15:22:37 +0000 (15:22 +0000)
bunch of data/info-that-should-be-logged-by-all-mpms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1599601 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
include/ap_mmn.h
include/http_log.h
server/log.c

index fe8591e4591779336c4b1fac44893c59f93ce3f7..d16660a3e6cee11b0ce382b1c7c820f1b254489e 100644 (file)
@@ -1 +1 @@
-2639
+2640
index cbb31afc3890850959a05b080adda884b423bb5f..b4c33a038f829f436474f5f7dc04578671acf8ef 100644 (file)
  * 20140207.4 (2.5.0-dev)  add ap_mpm_register_socket_callback_timeout
  * 20140207.5 (2.5.0-dev)  Add ap_mpm_resume_suspended(), AP_MPMQ_CAN_SUSPEND to
  *                         ap_mpm_query(), and suspended_baton to conn_rec
+ * 20140207.6 (2.5.0-dev)  Added ap_log_common().
  */
 
 #define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
 #ifndef MODULE_MAGIC_NUMBER_MAJOR
 #define MODULE_MAGIC_NUMBER_MAJOR 20140207
 #endif
-#define MODULE_MAGIC_NUMBER_MINOR 5                  /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 6                  /* 0...n */
 
 /**
  * Determine if the server's current MODULE_MAGIC_NUMBER is at least a
index a71df8e2cb4d96d97ab69fe05c5de6256a7892d7..60896f45383d8f7117c5f2c4aedb6f9b7512362d 100644 (file)
@@ -740,6 +740,13 @@ AP_DECLARE(void) ap_error_log2stderr(server_rec *s);
  */
 AP_DECLARE(void) ap_log_command_line(apr_pool_t *p, server_rec *s);
 
+/**
+ * Log common shared data
+ * @param s The server_rec whose process's command line we want to log.
+ * Misc commonly logged data is logged to that server's error log.
+ */
+AP_DECLARE(void) ap_log_common(server_rec *s);
+
 /**
  * Log the current pid of the parent process
  * @param p The pool to use for processing
index 45d6d9eba29f6b288795931365f2d700220cf13c..2d35d35e6c37c62614eb0e5e235e2ea1c339ec2c 100644 (file)
@@ -54,6 +54,7 @@
 #include "util_time.h"
 #include "ap_mpm.h"
 #include "ap_provider.h"
+#include "ap_listen.h"
 
 #if HAVE_GETTID
 #include <sys/syscall.h>
@@ -1487,6 +1488,15 @@ AP_DECLARE(void) ap_log_command_line(apr_pool_t *plog, server_rec *s)
                  "Command line: '%s'", result);
 }
 
+/* grab bag function to log commonly logged and shared info */
+AP_DECLARE(void) ap_log_common(server_rec *s)
+{
+    ap_log_error(APLOG_MARK, APLOG_DEBUG , 0, s, APLOGNO(02639)
+                 "Using SO_REUSEPORT: %s (%d)",
+                 have_so_reuseport ? "yes" : "no",
+                 num_buckets);
+}
+
 AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *rel_fname)
 {
     apr_status_t rv;