From 42ac64953825d06b2fcbbabc6124595068026285 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Wed, 17 Aug 2016 13:22:20 +0000 Subject: [PATCH] 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 --- modules/cache/mod_cache.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 9cda2e9b17..e49581c06d 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. -- 2.50.1