]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
I am changing debugging levels for these frequently-printed messages.
authorwessels <>
Sat, 18 Feb 2006 07:09:35 +0000 (07:09 +0000)
committerwessels <>
Sat, 18 Feb 2006 07:09:35 +0000 (07:09 +0000)
They make full debugging virtually worthless because they overwhelm
the other messages.

For now 'squid -kdebug' changes debugging to 'ALL,7' instead of 'ALL,10'

src/HttpHeader.cc
src/cbdata.cc
src/tools.cc

index 58f8ec77ef1968684709543d94736565abdf6241..602cf85bc4970b6b1c5494bceeb6074645e76195 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHeader.cc,v 1.110 2005/12/26 11:35:22 serassio Exp $
+ * $Id: HttpHeader.cc,v 1.111 2006/02/18 00:09:35 wessels Exp $
  *
  * DEBUG: section 55    HTTP Header
  * AUTHOR: Alex Rousskov
@@ -706,7 +706,7 @@ httpHeaderDelByName(HttpHeader * hdr, const char *name)
     HttpHeaderPos pos = HttpHeaderInitPos;
     HttpHeaderEntry *e;
     httpHeaderMaskInit(&hdr->mask, 0); /* temporal inconsistency */
-    debug(55, 7) ("deleting '%s' fields in hdr %p\n", name, hdr);
+    debug(55, 9) ("deleting '%s' fields in hdr %p\n", name, hdr);
 
     while ((e = httpHeaderGetEntry(hdr, &pos))) {
         if (!e->name.caseCmp(name)) {
@@ -773,7 +773,7 @@ httpHeaderAddEntry(HttpHeader * hdr, HttpHeaderEntry * e)
     assert(hdr && e);
     assert_eid(e->id);
 
-    debugs(55, 7, hdr << " adding entry: " << e->id << " at " <<
+    debugs(55, 9, hdr << " adding entry: " << e->id << " at " <<
            hdr->entries.count);
 
     if (CBIT_TEST(hdr->mask, e->id))
@@ -816,7 +816,7 @@ httpHeaderGetList(const HttpHeader * hdr, http_hdr_type id)
 {
     HttpHeaderEntry *e;
     HttpHeaderPos pos = HttpHeaderInitPos;
-    debug(55, 6) ("%p: joining for id %d\n", hdr, id);
+    debug(55, 9) ("%p: joining for id %d\n", hdr, id);
     /* only fields from ListHeaders array can be "listed" */
     assert(CBIT_TEST(ListHeadersMask, id));
 
@@ -956,7 +956,7 @@ httpHeaderHas(const HttpHeader * hdr, http_hdr_type id)
     assert(hdr);
     assert_eid(id);
     assert(id != HDR_OTHER);
-    debug(55, 7) ("%p lookup for %d\n", hdr, id);
+    debug(55, 9) ("%p lookup for %d\n", hdr, id);
     return CBIT_TEST(hdr->mask, id);
 }
 
index 852f0135346031e88df92b290dbdffe7008007d4..ac051cb2b1e09763b8b016e82f1d56941698befe 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cbdata.cc,v 1.69 2006/01/24 15:42:27 hno Exp $
+ * $Id: cbdata.cc,v 1.70 2006/02/18 00:09:35 wessels Exp $
  *
  * DEBUG: section 45    Callback Data Registry
  * ORIGINAL AUTHOR: Duane Wessels
@@ -294,7 +294,7 @@ cbdataInternalFree(void *p)
     debug(45, 3) ("cbdataFree: %p %s:%d\n", p, file, line);
 #else
 
-    debug(45, 3) ("cbdataFree: %p\n", p);
+    debug(45, 9) ("cbdataFree: %p\n", p);
 #endif
 
     c->check(__LINE__);
@@ -306,13 +306,13 @@ cbdataInternalFree(void *p)
 #endif
 
     if (c->locks) {
-        debug(45, 3) ("cbdataFree: %p has %d locks, not freeing\n",
+        debug(45, 9) ("cbdataFree: %p has %d locks, not freeing\n",
                       p, c->locks);
         return NULL;
     }
 
     cbdataCount--;
-    debug(45, 3) ("cbdataFree: Freeing %p\n", p);
+    debug(45, 9) ("cbdataFree: Freeing %p\n", p);
 #if CBDATA_DEBUG
 
     dlinkDelete(&c->link, &cbdataEntries);
@@ -357,7 +357,7 @@ cbdataInternalLock(const void *p)
 
 #else
 
-    debug(45, 3) ("cbdataLock: %p=%d\n", p, c ? c->locks + 1 : -1);
+    debug(45, 9) ("cbdataLock: %p=%d\n", p, c ? c->locks + 1 : -1);
 
 #endif
 
@@ -390,7 +390,7 @@ cbdataInternalUnlock(const void *p)
 
 #else
 
-    debug(45, 3) ("cbdataUnlock: %p=%d\n", p, c ? c->locks - 1 : -1);
+    debug(45, 9) ("cbdataUnlock: %p=%d\n", p, c ? c->locks - 1 : -1);
 
 #endif
 
@@ -407,7 +407,7 @@ cbdataInternalUnlock(const void *p)
 
     cbdataCount--;
 
-    debug(45, 3) ("cbdataUnlock: Freeing %p\n", p);
+    debug(45, 9) ("cbdataUnlock: Freeing %p\n", p);
 
 #if CBDATA_DEBUG
 
@@ -440,7 +440,7 @@ cbdataReferenceValid(const void *p)
     if (p == NULL)
         return 1;              /* A NULL pointer cannot become invalid */
 
-    debug(45, 3) ("cbdataReferenceValid: %p\n", p);
+    debug(45, 9) ("cbdataReferenceValid: %p\n", p);
 
     c = (cbdata *) (((char *) p) - cbdata::Offset);
 
index 988128108a4051df83366de4c40c97d5159eb45f..870e3046288c8869a872f722cdfaec67c2305e19 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.264 2005/09/24 13:21:00 serassio Exp $
+ * $Id: tools.cc,v 1.265 2006/02/18 00:09:35 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -399,7 +399,7 @@ sigusr2_handle(int sig)
 
     if (state == 0) {
 #ifndef MEM_GEN_TRACE
-        Debug::parseOptions("ALL,10");
+        Debug::parseOptions("ALL,7");
 #else
 
         log_trace_done();