From: wessels <> Date: Tue, 11 Aug 1998 01:37:47 +0000 (+0000) Subject: debugging level adjustment for pagers X-Git-Tag: SQUID_3_0_PRE1~2922 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a60f706213a97d26c402e6dbf35762ff3fd52b43;p=thirdparty%2Fsquid.git debugging level adjustment for pagers --- diff --git a/src/HttpStatusLine.cc b/src/HttpStatusLine.cc index 0d3ed13245..6cd04b0fd5 100644 --- a/src/HttpStatusLine.cc +++ b/src/HttpStatusLine.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpStatusLine.cc,v 1.15 1998/07/22 20:36:50 wessels Exp $ + * $Id: HttpStatusLine.cc,v 1.16 1998/08/10 19:37:47 wessels Exp $ * * DEBUG: section 57 HTTP Status-line * AUTHOR: Alex Rousskov @@ -222,7 +222,7 @@ httpStatusString(http_status status) break; default: p = "Unknown"; - debug(57, 0) ("Unknown HTTP status code: %d\n", status); + debug(57, 3) ("Unknown HTTP status code: %d\n", status); break; } return p; diff --git a/src/ipc.cc b/src/ipc.cc index 133dc8e911..b49cb98dd4 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -1,6 +1,6 @@ /* - * $Id: ipc.cc,v 1.8 1998/08/03 19:28:23 wessels Exp $ + * $Id: ipc.cc,v 1.9 1998/08/10 19:37:48 wessels Exp $ * * DEBUG: section 54 Interprocess Communication * AUTHOR: Duane Wessels @@ -164,7 +164,7 @@ ipcCreate(int type, const char *prog, char *const args[], const char *name, int /* flush or else we get dup data if unbuffered_logs is set */ logsFlush(); if ((pid = fork()) < 0) { - debug(50, 0) ("ipcCreate: fork: %s\n", xstrerror()); + debug(50, 1) ("ipcCreate: fork: %s\n", xstrerror()); return ipcCloseAllFD(prfd, pwfd, crfd, cwfd); } if (pid > 0) { /* parent */ diff --git a/src/main.cc b/src/main.cc index 5d3ba9797a..0bfd6603d0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.266 1998/08/05 06:05:02 wessels Exp $ + * $Id: main.cc,v 1.267 1998/08/10 19:37:49 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -303,7 +303,7 @@ serverConnectionsClose(void) static void mainReconfigure(void) { - debug(1, 0) ("Restarting Squid Cache (version %s)...\n", version_string); + debug(1, 1) ("Restarting Squid Cache (version %s)...\n", version_string); reconfiguring = 1; /* Already called serverConnectionsClose and ipcacheShutdownServers() */ serverConnectionsClose(); @@ -728,7 +728,7 @@ SquidShutdown(void *unused) #if MEM_GEN_TRACE log_trace_done(); #endif - debug(1, 0) ("Squid Cache (Version %s): Exiting normally.\n", + debug(1, 1) ("Squid Cache (Version %s): Exiting normally.\n", version_string); fclose(debug_log); exit(0); diff --git a/src/store_swapin.cc b/src/store_swapin.cc index 2589ab9259..cadfe677c6 100644 --- a/src/store_swapin.cc +++ b/src/store_swapin.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapin.cc,v 1.11 1998/07/22 20:54:03 wessels Exp $ + * $Id: store_swapin.cc,v 1.12 1998/08/10 19:37:50 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapin Functions * AUTHOR: Duane Wessels @@ -119,11 +119,11 @@ storeSwapInFileOpened(void *data, int fd, int errcode) } else if (e->swap_status != SWAPOUT_DONE) { (void) 0; } else if (fstat(fd, &sb) < 0) { - debug(20, 0) ("storeSwapInFileOpened: fstat() FD %d: %s\n", fd, xstrerror()); + debug(20, 1) ("storeSwapInFileOpened: fstat() FD %d: %s\n", fd, xstrerror()); file_close(fd); fd = -1; } else if (sb.st_size == 0 || sb.st_size != e->swap_file_sz) { - debug(20, 0) ("storeSwapInFileOpened: %s: Size mismatch: %d(fstat) != %d(object)\n", ctrlp->path, (int) sb.st_size, e->swap_file_sz); + debug(20, 1) ("storeSwapInFileOpened: %s: Size mismatch: %d(fstat) != %d(object)\n", ctrlp->path, (int) sb.st_size, e->swap_file_sz); file_close(fd); fd = -1; } diff --git a/src/url.cc b/src/url.cc index 5f0fff58b8..929533a4d6 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.103 1998/07/22 20:38:04 wessels Exp $ + * $Id: url.cc,v 1.104 1998/08/10 19:37:51 wessels Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -240,7 +240,7 @@ urlParse(method_t method, char *url) if (Config.appendDomain && !strchr(host, '.')) strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN); if (port == 0) { - debug(23, 0) ("urlParse: Invalid port == 0\n"); + debug(23, 3) ("urlParse: Invalid port == 0\n"); return NULL; } #ifdef HARDCODE_DENY_PORTS