From: Amos Jeffries Date: Fri, 18 Feb 2011 09:57:53 +0000 (+1300) Subject: Log details of the stored object when locates a Date:-less object in cache X-Git-Tag: take03^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e78ae89a4c328ce142c287b56c205149d5f6d287;p=thirdparty%2Fsquid.git Log details of the stored object when locates a Date:-less object in cache These details are difficult to find afterward and required to track down the bug that caused them to be cached. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 250ac2d8b7..7425d73784 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -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); } }