]> granicus.if.org Git - apache/commitdiff
The error logging core only logs at very high level if it has no
authorSander Temme <sctemme@apache.org>
Fri, 15 Aug 2008 16:11:46 +0000 (16:11 +0000)
committerSander Temme <sctemme@apache.org>
Fri, 15 Aug 2008 16:11:46 +0000 (16:11 +0000)
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

index a0ee668b765af134d7221ae3657e97c36caba9b6..2c6d688f3a63354ba1dea59e347e2d38e1db732b 100644 (file)
@@ -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;
     }