From: Yann Ylavic Date: Wed, 17 Aug 2016 13:22:20 +0000 (+0000) Subject: mod_cache: follow up to r1756553: log the real/actual cached URI (debug). X-Git-Tag: 2.5.0-alpha~1270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42ac64953825d06b2fcbbabc6124595068026285;p=thirdparty%2Fapache%2Fhttpd.git mod_cache: follow up to r1756553: log the real/actual cached URI (debug). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756631 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 9cda2e9b170..e49581c06d5 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -1190,8 +1190,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in) ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02473) "cache: %s responded with an uncacheable 304, " - "retrying the request. Reason: %s", - r->unparsed_uri, reason); + "retrying the request %s. Reason: %s", + cache->key, r->unparsed_uri, reason); /* we've got a cache conditional miss! tell anyone who cares */ cache_run_cache_status(cache->handle, r, r->headers_out, AP_CACHE_MISS, @@ -1225,8 +1225,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in) if (reason) { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00768) - "cache: %s not cached. Reason: %s", r->unparsed_uri, - reason); + "cache: %s not cached for request %s. Reason: %s", + cache->key, r->unparsed_uri, reason); /* we've got a cache miss! tell anyone who cares */ cache_run_cache_status(cache->handle, r, r->headers_out, AP_CACHE_MISS, @@ -1344,7 +1344,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in) } ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(00769) - "cache: Caching url: %s", r->unparsed_uri); + "cache: Caching url %s for request %s", + cache->key, r->unparsed_uri); /* We are actually caching this response. So it does not * make sense to remove this entity any more.