]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Tone down debug levels
authorwessels <>
Tue, 28 Oct 1997 05:49:48 +0000 (05:49 +0000)
committerwessels <>
Tue, 28 Oct 1997 05:49:48 +0000 (05:49 +0000)
src/ftp.cc
src/http.cc
src/store_dir.cc

index 2160909042c69c96765cb38ff1fdd1635265e8b2..ee0cddcf5a7e0cddf5e6d35ab1e3ecd6138a97b1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.153 1997/10/26 07:16:38 wessels Exp $
+ * $Id: ftp.cc,v 1.154 1997/10/27 22:49:48 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -1560,7 +1560,7 @@ static void
 ftpAbort(void *data)
 {
     FtpStateData *ftpState = data;
-    debug(9, 1) ("ftpAbort: %s\n", ftpState->entry->url);
+    debug(9, 2) ("ftpAbort: %s\n", ftpState->entry->url);
     if (ftpState->data.fd >= 0) {
        comm_close(ftpState->data.fd);
        ftpState->data.fd = -1;
index 621f41c3ea989d3192f15e8b25e652de62f60411..ccd056804e074db6cb423f6c578fc38baeeb0375 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.202 1997/10/26 02:35:32 wessels Exp $
+ * $Id: http.cc,v 1.203 1997/10/27 22:49:49 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -1041,7 +1041,7 @@ static void
 httpRestart(HttpStateData * httpState)
 {
     /* restart a botched request from a persistent connection */
-    debug(11, 1) ("Retrying HTTP request for %s\n", httpState->entry->url);
+    debug(11, 2) ("Retrying HTTP request for %s\n", httpState->entry->url);
     if (httpState->fd >= 0) {
        comm_remove_close_handler(httpState->fd, httpStateFree, httpState);
        comm_close(httpState->fd);
@@ -1123,7 +1123,7 @@ static void
 httpAbort(void *data)
 {
     HttpStateData *httpState = data;
-    debug(11, 1) ("httpAbort: %s\n", httpState->entry->url);
+    debug(11, 2) ("httpAbort: %s\n", httpState->entry->url);
     comm_close(httpState->fd);
 }
 
index eab245442f96499b80192fcece64152fe3a6d226..3025346cc4e44179b0c35a08770ad3420cb8c81b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.33 1997/10/25 16:49:06 wessels Exp $
+ * $Id: store_dir.cc,v 1.34 1997/10/27 22:49:50 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -373,8 +373,12 @@ storeDirStats(StoreEntry * sentry)
     int i;
     SwapDir *SD;
     storeAppendPrintf(sentry, "Store Directory Statistics:\n");
-    storeAppendPrintf(sentry, "Store Entries: %d\n", meta_data.store_entries);
-    storeAppendPrintf(sentry, "Store Swap Size: %d KB\n", store_swap_size);
+    storeAppendPrintf(sentry, "Store Entries          : %d\n", meta_data.store_entries);
+    storeAppendPrintf(sentry, "Maximum Swap Size      : %8d KB\n", Config.Swap.maxSize);
+    storeAppendPrintf(sentry, "Current Store Swap Size: %8d KB\n", store_swap_size);
+    storeAppendPrintf(sentry, "Current Capacity       : %d%% used, %d%% free\n",
+       percent((int) store_swap_size, (int) Config.Swap.maxSize),
+       percent((int) (Config.Swap.maxSize- store_swap_size), (int) Config.Swap.maxSize));
     for (i = 0; i < Config.cacheSwap.n_configured; i++) {
        SD = &Config.cacheSwap.swapDirs[i];
        storeAppendPrintf(sentry, "\n");