Skip to content

Commit

Permalink
Report all refreshCheck() outcomes and entry gist (squid-cache#1932)
Browse files Browse the repository at this point in the history
All other refreshCheck() return statements already have a debugs().
Reporting StoreEntry gist helps find the right calls in busy proxy logs.
  • Loading branch information
rousskov authored and kinkie committed Nov 4, 2024
1 parent 9fa4b8a commit a168e9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/refresh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ refreshCheck(const StoreEntry * entry, HttpRequest * request, time_t delta)
else if (request)
uri = request->effectiveRequestUri();

debugs(22, 3, "checking freshness of URI: " << uri);
debugs(22, 3, "checking freshness of " << *entry << " with URI: " << uri);

// age is not necessarily the age now, but the age at the given check_time
if (check_time > entry->timestamp)
Expand Down Expand Up @@ -480,11 +480,14 @@ refreshCheck(const StoreEntry * entry, HttpRequest * request, time_t delta)
}

#endif
debugs(22, 3, "returning STALE_EXPIRES");
return STALE_EXPIRES;
}

if (sf.max)
if (sf.max) {
debugs(22, 3, "returning STALE_MAX_RULE");
return STALE_MAX_RULE;
}

if (sf.lmfactor) {
#if USE_HTTP_VIOLATIONS
Expand Down

0 comments on commit a168e9e

Please sign in to comment.