]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Log details of the stored object when locates a Date:-less object in cache
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Feb 2011 09:57:53 +0000 (22:57 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Feb 2011 09:57:53 +0000 (22:57 +1300)
These details are difficult to find afterward and required to track down
the bug that caused them to be cached.

src/client_side_reply.cc

index 250ac2d8b7106d6942defc37fd5e48c694384e1d..7425d7378437cd6bb9fbfeda20045fd4edc46d76 100644 (file)
@@ -1337,8 +1337,9 @@ clientReplyContext::buildReplyHeader()
         else if (http->storeEntry()->timestamp > 0)
             hdr->insertTime(HDR_DATE, http->storeEntry()->timestamp);
         else {
-            debugs(88,1,"WARNING: An error inside Squid has caused an HTTP reply without Date:. Please report this");
-            /* TODO: dump something useful about the problem */
+            debugs(88,DBG_IMPORTANT,"WARNING: An error inside Squid has caused an HTTP reply without Date:. Please report this:");
+            /* dump something useful about the problem */
+            http->storeEntry()->dump(DBG_IMPORTANT);
         }
     }