]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Quiet down swap out error reporting.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 Feb 2011 22:25:45 +0000 (15:25 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 Feb 2011 22:25:45 +0000 (15:25 -0700)
Do not report swap out errors at level 1. When things go wrong, the already
bad situation is made worse by writing lots of error messages to cache.log.

Do not report system error because the errno may be stale or irrelevant.
If error details are needed, the code should save and propagate the actual
errno in addition to the DISK_ERROR or similar status.

src/store_swapout.cc

index b0981da0716d5d3a6001e2028977e0732eaad215..d8da21697629253364fa187c18bd7ba51b9aa0a4 100644 (file)
@@ -325,10 +325,9 @@ storeSwapOutFileClosed(void *data, int errflag, StoreIOState::Pointer self)
     cbdataFree(c);
 
     if (errflag) {
-        debugs(20, 1, "storeSwapOutFileClosed: dirno " << e->swap_dirn << ", swapfile " <<
+        debugs(20, 2, "storeSwapOutFileClosed: dirno " << e->swap_dirn << ", swapfile " <<
                std::hex << std::setw(8) << std::setfill('0') << std::uppercase <<
                e->swap_filen << ", errflag=" << errflag);
-        debugs(20, 1, "\t" << xstrerror());
 
         if (errflag == DISK_NO_SPACE_LEFT) {
             /* FIXME: this should be handle by the link from store IO to