]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- Increased the debugging level for "ignoring..." messages to at least 2
authorrousskov <>
Thu, 5 Mar 1998 07:45:36 +0000 (07:45 +0000)
committerrousskov <>
Thu, 5 Mar 1998 07:45:36 +0000 (07:45 +0000)
src/HttpHdrCc.cc
src/HttpHeader.cc
src/HttpStatusLine.cc

index 7bb44cecfdf8b27650fc0549aea9f2978a9fc9b0..d5333a744478b131f5f14d1f50c4929d5757e767 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHdrCc.cc,v 1.1 1998/03/05 00:01:07 rousskov Exp $
+ * $Id: HttpHdrCc.cc,v 1.2 1998/03/05 00:45:36 rousskov Exp $
  *
  * DEBUG: section 65    HTTP Cache Control Header
  * AUTHOR: Alex Rousskov
@@ -97,11 +97,11 @@ httpHdrCcParseInit(HttpHdrCc * cc, const char *str)
        type = httpHeaderIdByName(item, ilen,
            CcAttrs, CC_ENUM_END, -1);
        if (type < 0) {
-           debug(55, 0) ("hdr cc: unknown cache-directive: near '%s' in '%s'\n", item, str);
+           debug(65, 2) ("hdr cc: unknown cache-directive: near '%s' in '%s'\n", item, str);
            continue;
        }
        if (EBIT_TEST(cc->mask, type)) {
-           debug(55, 0) ("hdr cc: ignoring duplicate cache-directive: near '%s' in '%s'\n", item, str);
+           debug(65, 2) ("hdr cc: ignoring duplicate cache-directive: near '%s' in '%s'\n", item, str);
            CcAttrs[type].stat.repCount++;
            continue;
        }
@@ -113,7 +113,7 @@ httpHdrCcParseInit(HttpHdrCc * cc, const char *str)
            if (p)
                cc->max_age = (time_t) atoi(p);
            if (cc->max_age < 0) {
-               debug(55, 0) ("cc: invalid max-age specs near '%s'\n", item);
+               debug(65, 2) ("cc: invalid max-age specs near '%s'\n", item);
                cc->max_age = -1;
                EBIT_CLR(cc->mask, type);
            }
index fab05d38b73567ceabeebd0d8fd266792b4fd2b1..15a6d5a85065f7ae5a7ab9213bcc8910a47998e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: HttpHeader.cc,v 1.15 1998/03/05 00:42:42 wessels Exp $
+ * $Id: HttpHeader.cc,v 1.16 1998/03/05 00:45:37 rousskov Exp $
  *
  * DEBUG: section 55    HTTP Header
  * AUTHOR: Alex Rousskov
@@ -443,7 +443,7 @@ httpHeaderParse(HttpHeader * hdr, const char *header_start, const char *header_e
         * robust. Note that we should be able to parse any commonn format field
         */
        if (!httpHeaderEntryParseInit(&e, field_start, field_end, mask))
-           debug(55, 1) ("warning: ignoring unparseable http header field near '%s'\n",
+           debug(55, 2) ("warning: ignoring unparseable http header field near '%s'\n",
                getStringPrefix(field_start));
        else
            httpHeaderAddParsedEntry(hdr, &e);
@@ -982,7 +982,7 @@ httpHeaderEntryParseByTypeInit(HttpHeaderEntry * e, int id, const HttpHeaderExtF
     case ftInt:
        field.v_int = atoi(f->value);
        if (!field.v_int && !isdigit(*f->value)) {
-           debug(55, 1) ("cannot parse an int header field: id: %d, field: '%s: %s'\n",
+           debug(55, 2) ("cannot parse an int header field: id: %d, field: '%s: %s'\n",
                id, f->name, f->value);
            Headers[id].stat.errCount++;
            return 0;
@@ -1006,7 +1006,7 @@ httpHeaderEntryParseByTypeInit(HttpHeaderEntry * e, int id, const HttpHeaderExtF
     case ftPSCC:
        field.v_pcc = httpHdrCcParseCreate(f->value);
        if (!field.v_pcc) {
-           debug(55, 0) ("failed to parse scc hdr: id: %d, field: '%s: %s'\n",
+           debug(55, 2) ("failed to parse scc hdr: id: %d, field: '%s: %s'\n",
                id, f->name, f->value);
            Headers[id].stat.errCount++;
            return 0;
@@ -1014,7 +1014,7 @@ httpHeaderEntryParseByTypeInit(HttpHeaderEntry * e, int id, const HttpHeaderExtF
        break;
 
     default:
-       debug(55, 0) ("something went wrong with hdr field type analysis: id: %d, type: %d, field: '%s: %s'\n",
+       debug(55, 2) ("something went wrong with hdr field type analysis: id: %d, type: %d, field: '%s: %s'\n",
            id, type, f->name, f->value);
        assert(0);
     }
@@ -1247,11 +1247,11 @@ httpSccParseInit(HttpScc * scc, const char *str)
        type = httpHeaderIdByName(item, ilen,
            SccAttrs, SCC_ENUM_END, -1);
        if (type < 0) {
-           debug(55, 0) ("cc: unknown cache-directive: near '%s' in '%s'\n", item, str);
+           debug(55, 2) ("cc: unknown cache-directive: near '%s' in '%s'\n", item, str);
            continue;
        }
        if (EBIT_TEST(scc->mask, type)) {
-           debug(55, 0) ("cc: ignoring duplicate cache-directive: near '%s' in '%s'\n", item, str);
+           debug(55, 2) ("cc: ignoring duplicate cache-directive: near '%s' in '%s'\n", item, str);
            SccAttrs[type].stat.repCount++;
            continue;
        }
@@ -1263,7 +1263,7 @@ httpSccParseInit(HttpScc * scc, const char *str)
            if (p)
                scc->max_age = (time_t) atoi(p);
            if (scc->max_age < 0) {
-               debug(55, 0) ("scc: invalid max-age specs near '%s'\n", item);
+               debug(55, 2) ("scc: invalid max-age specs near '%s'\n", item);
                scc->max_age = -1;
                EBIT_CLR(scc->mask, type);
            }
index 41719b51a2976bff2fad44a6deb4d51a18dc0786..74d6118d9f1286c08dbb57414c74be217864d35f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: HttpStatusLine.cc,v 1.7 1998/03/05 00:42:44 wessels Exp $
+ * $Id: HttpStatusLine.cc,v 1.8 1998/03/05 00:45:37 rousskov Exp $
  *
  * DEBUG: section 57    HTTP Status-line
  * AUTHOR: Alex Rousskov
@@ -216,7 +216,7 @@ httpStatusString(http_status status)
        break;
     default:
        p = "Unknown";
-       debug(11, 0) ("Unknown HTTP status code: %d\n", status);
+       debug(57, 0) ("Unknown HTTP status code: %d\n", status);
        break;
     }
     return p;