From: wessels <> Date: Wed, 5 Aug 1998 12:04:59 +0000 (+0000) Subject: debugging level changes for syslog X-Git-Tag: SQUID_3_0_PRE1~2932 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aebbcd072ed9ac976bd43dde91ec3a2a14e22986;p=thirdparty%2Fsquid.git debugging level changes for syslog --- diff --git a/src/client_side.cc b/src/client_side.cc index b36c52f935..ff088df093 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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) { diff --git a/src/icmp.cc b/src/icmp.cc index b3efeb59e3..453ed5c565 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -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 diff --git a/src/main.cc b/src/main.cc index a998287ac6..5d3ba9797a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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); diff --git a/src/net_db.cc b/src/net_db.cc index 1cfbb55993..d24bef1984 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -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)); } diff --git a/src/unlinkd.cc b/src/unlinkd.cc index 81b58669f1..f4d3b25f94 100644 --- a/src/unlinkd.cc +++ b/src/unlinkd.cc @@ -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 }