]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make sure the debug subsystem is suitably initialized early in the
authorhno <>
Sun, 7 Nov 2004 21:49:44 +0000 (21:49 +0000)
committerhno <>
Sun, 7 Nov 2004 21:49:44 +0000 (21:49 +0000)
startup before configuration has been read

src/main.cc
src/tools.cc

index 2893f5857131ec5850beadfacb9b2313519aaea1..8905914d5a4caa8ae434e6fa1c171f210577d901 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.393 2004/08/30 05:12:31 robertc Exp $
+ * $Id: main.cc,v 1.394 2004/11/07 14:49:44 hno Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -863,6 +863,7 @@ main(int argc, char **argv)
     sbrk_start = sbrk(0);
 #endif
 
+    Debug::parseOptions("ALL,1");
     debug_log = stderr;
 
     if (FD_SETSIZE < Squid_MaxFD)
index 4383758a390b7ffe6925badd179d7c824517b639..2926debda6a6266df84751a2fa25a88adfd8a158 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.244 2004/10/20 22:41:05 hno Exp $
+ * $Id: tools.cc,v 1.245 2004/11/07 14:49:44 hno Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -388,7 +388,7 @@ sigusr2_handle(int sig)
 
     if (state == 0) {
 #ifndef MEM_GEN_TRACE
-        _db_init(Config.Log.log, "ALL,10");
+        Debug::parseOptions("ALL,10");
 #else
 
         log_trace_done();
@@ -397,7 +397,7 @@ sigusr2_handle(int sig)
         state = 1;
     } else {
 #ifndef MEM_GEN_TRACE
-        _db_init(Config.Log.log, Config.debugOptions);
+        Debug::parseOptions(Config.debugOptions);
 #else
 
         log_trace_init("/tmp/squid.alloc");