]> 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>
Wed, 30 Mar 2011 12:44:19 +0000 (06:44 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Mar 2011 12:44:19 +0000 (06:44 -0600)
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 a0af8e126ac33267e52c18f23d07b4ff04237739..8eb7e86e29193b19777b14bb28a71f391487a21b 100644 (file)
@@ -1329,8 +1329,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);
         }
     }