From 323315721407a172941424a3c1f653c77ea2d1f1 Mon Sep 17 00:00:00 2001 From: Sander Temme Date: Fri, 15 Aug 2008 16:11:46 +0000 Subject: [PATCH] The error logging core only logs at very high level if it has no server_rec from which to read the appropriate LogLevel. Ensure that everything gets logged when -DDEBUG is passed to the compiler. This makes the server very verbose, on the command line before stderr is redirected and in the error log afterwards. This is appropriate when debugging, but not under normal circumstances. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@686271 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/log.c b/server/log.c index a0ee668b76..2c6d688f3a 100644 --- a/server/log.c +++ b/server/log.c @@ -511,10 +511,12 @@ static void log_error_core(const char *file, int line, int level, * above the default server log level unless it is a startup/shutdown * notice */ +#ifndef DEBUG if ((level_and_mask != APLOG_NOTICE) && (level_and_mask > ap_default_loglevel)) { return; } +#endif logf = stderr_log; } -- 2.40.0