]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
debugging level changes for syslog
authorwessels <>
Wed, 5 Aug 1998 12:04:59 +0000 (12:04 +0000)
committerwessels <>
Wed, 5 Aug 1998 12:04:59 +0000 (12:04 +0000)
src/client_side.cc
src/icmp.cc
src/main.cc
src/net_db.cc
src/unlinkd.cc

index b36c52f935f0737147d95de969fca8f8b4ea0f34..ff088df09346438c7ac712f9fd96d584150ddbb6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.374 1998/08/04 06:01:38 wessels Exp $
+ * $Id: client_side.cc,v 1.375 1998/08/05 06:04:59 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1321,7 +1321,7 @@ clientSendMoreData(void *data, char *buf, ssize_t size)
        fd, storeUrl(entry), (int) http->out.offset);
     if (conn->chr != http) {
        /* there is another object in progress, defer this one */
-       debug(0, 0) ("clientSendMoreData: Deferring %s\n", storeUrl(entry));
+       debug(33, 1) ("clientSendMoreData: Deferring %s\n", storeUrl(entry));
        memFree4K(buf);
        return;
     } else if (entry && entry->store_status == STORE_ABORTED) {
index b3efeb59e35529638655c523421e176ac23cbff4..453ed5c565455e39029dd5a9ebab5f6f26fe6e53 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.61 1998/07/22 20:37:28 wessels Exp $
+ * $Id: icmp.cc,v 1.62 1998/08/05 06:05:01 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -73,7 +73,7 @@ icmpRecv(int unused1, void *unused2)
        sizeof(pingerReplyData),
        0);
     if (n < 0) {
-       debug(50, 0) ("icmpRecv: recv: %s\n", xstrerror());
+       debug(50, 1) ("icmpRecv: recv: %s\n", xstrerror());
        if (++fail_count == 10 || errno == ECONNREFUSED)
            icmpClose();
        return;
@@ -94,7 +94,7 @@ icmpRecv(int unused1, void *unused2)
        netdbHandlePingReply(&F, preply.hops, preply.rtt);
        break;
     default:
-       debug(37, 0) ("icmpRecv: Bad opcode: %d\n", (int) preply.opcode);
+       debug(37, 1) ("icmpRecv: Bad opcode: %d\n", (int) preply.opcode);
        break;
     }
 }
@@ -196,7 +196,7 @@ icmpOpen(void)
     icmp_sock = rfd;
     commSetSelect(icmp_sock, COMM_SELECT_READ, icmpRecv, NULL, 0);
     commSetTimeout(icmp_sock, -1, NULL, NULL);
-    debug(29, 0) ("Pinger socket opened on FD %d\n", icmp_sock);
+    debug(29, 1) ("Pinger socket opened on FD %d\n", icmp_sock);
 #endif
 }
 
@@ -206,7 +206,7 @@ icmpClose(void)
 #if USE_ICMP
     if (icmp_sock < 0)
        return;
-    debug(29, 0) ("Closing Pinger socket on FD %d\n", icmp_sock);
+    debug(29, 1) ("Closing Pinger socket on FD %d\n", icmp_sock);
     comm_close(icmp_sock);
     icmp_sock = -1;
 #endif
index a998287ac6a527ab15220f9375d9fc141ae8197d..5d3ba9797a5ddb5f95bcb94d5ae8c723082fb27b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.265 1998/07/31 02:40:29 wessels Exp $
+ * $Id: main.cc,v 1.266 1998/08/05 06:05:02 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -329,7 +329,7 @@ mainReconfigure(void)
     if (theOutIcpConnection >= 0 && (!Config2.Accel.on || Config.onoff.accel_with_proxy))
        neighbors_open(theOutIcpConnection);
     storeDirOpenSwapLogs();
-    debug(1, 0) ("Ready to serve requests.\n");
+    debug(1, 1) ("Ready to serve requests.\n");
     reconfiguring = 0;
 }
 
@@ -391,7 +391,7 @@ mainInitialize(void)
     debug(1, 0) ("Starting Squid Cache version %s for %s...\n",
        version_string,
        CONFIG_HOST_TYPE);
-    debug(1, 0) ("Process ID %d\n", (int) getpid());
+    debug(1, 1) ("Process ID %d\n", (int) getpid());
     debug(1, 1) ("With %d file descriptors available\n", Squid_MaxFD);
 
     if (!configured_once)
@@ -459,7 +459,7 @@ mainInitialize(void)
     squid_signal(SIGALRM, time_tick, SA_RESTART);
     alarm(1);
 #endif
-    debug(1, 0) ("Ready to serve requests.\n");
+    debug(1, 1) ("Ready to serve requests.\n");
 
     if (!configured_once) {
        eventAdd("storeMaintain", storeMaintainSwapSpace, NULL, 1.0, 1);
index 1cfbb55993aa829b9aaa722cd378d92bffa11b53..d24bef19841b1523426d11bf41cedb910cc7d370 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: net_db.cc,v 1.120 1998/07/22 20:37:38 wessels Exp $
+ * $Id: net_db.cc,v 1.121 1998/08/05 06:05:02 wessels Exp $
  *
  * DEBUG: section 37    Network Measurement Database
  * AUTHOR: Duane Wessels
@@ -396,7 +396,7 @@ netdbSaveState(void *foo)
     }
     fclose(fp);
     getCurrentTime();
-    debug(37, 0) ("NETDB state saved; %d entries, %d msec\n",
+    debug(37, 1) ("NETDB state saved; %d entries, %d msec\n",
        count, tvSubMsec(start, current_time));
     eventAddIsh("netdbSaveState", netdbSaveState, NULL, 3600.0, 1);
 }
@@ -462,7 +462,7 @@ netdbReloadState(void)
     memFree(MEM_4K_BUF, buf);
     fclose(fp);
     getCurrentTime();
-    debug(37, 0) ("NETDB state reloaded; %d entries, %d msec\n",
+    debug(37, 1) ("NETDB state reloaded; %d entries, %d msec\n",
        count, tvSubMsec(start, current_time));
 }
 
index 81b58669f1afaa546ad0bcc4afffbb4d68d306f8..f4d3b25f94ce19a7d2bcd1841fe6282549412d84 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unlinkd.cc,v 1.24 1998/08/03 19:29:09 wessels Exp $
+ * $Id: unlinkd.cc,v 1.25 1998/08/05 06:05:03 wessels Exp $
  *
  * DEBUG: section 12    Unlink Daemon
  * AUTHOR: Duane Wessels
@@ -154,7 +154,7 @@ unlinkdInit(void)
     commSetTimeout(unlinkd_wfd, -1, NULL, NULL);
     commSetNonBlocking(unlinkd_wfd);
     commSetNonBlocking(unlinkd_rfd);
-    debug(12, 0) ("Unlinkd pipe opened on FD %d\n", unlinkd_wfd);
+    debug(12, 1) ("Unlinkd pipe opened on FD %d\n", unlinkd_wfd);
 #endif
 }