]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Changed Mem::Init() debug message "Memory pools are ..." to level 3 since
authorwessels <>
Tue, 13 Dec 2005 01:28:12 +0000 (01:28 +0000)
committerwessels <>
Tue, 13 Dec 2005 01:28:12 +0000 (01:28 +0000)
it is really annoying to have it show up on stderr in cron jobs etc.

src/mem.cc

index 0b79b9ac3ea081cc0c74f3abb99273167efad30e..d249e9234d30f8a5432f1efb4a6d2b4c000e4f18 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: mem.cc,v 1.87 2005/09/17 04:53:44 wessels Exp $
+ * $Id: mem.cc,v 1.88 2005/12/12 18:28:12 wessels Exp $
  *
  * DEBUG: section 13    High Level Memory Pool Management
  * AUTHOR: Harvest Derived
@@ -348,7 +348,13 @@ Mem::Init(void)
 {
     int i;
 
-    debug(13, 1) ("Memory pools are '%s'; limit: %.2f MB\n",
+    /*
+     * NOTE: Mem::Init() is called before the config file is parsed
+     * and before the debugging module has been initialized.  Any
+     * debug messages here at level 0 or 1 will always be printed
+     * on stderr.
+     */
+    debug(13, 3) ("Memory pools are '%s'; limit: %.2f MB\n",
                   (Config.onoff.mem_pools ? "on" : "off"), toMB(MemPools::GetInstance().idleLimit()));
 
     /* set all pointers to null */