From bb6068b28ae2a3fc77290b29f202b22dcc6bc267 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 5 Aug 2004 08:27:24 +0000 Subject: [PATCH] mod_disk_cache: Produce slightly more informative log messages and at more appropriate levels. (LogLevel info will now only inform you when you are storing a cache item. debug is required to show what is being served from cache.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104497 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_disk_cache.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/experimental/mod_disk_cache.c b/modules/experimental/mod_disk_cache.c index 6366a3698d..6e6465fd72 100644 --- a/modules/experimental/mod_disk_cache.c +++ b/modules/experimental/mod_disk_cache.c @@ -344,11 +344,11 @@ static int create_entity(cache_handle_t *h, request_rec *r, h->remove_entity = &remove_entity; ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, - "disk_cache: Caching URL %s", key); + "disk_cache: Storing URL %s", key); } else { ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, - "disk_cache: Could not cache URL %s [%d]", key, rv); + "disk_cache: Could not store URL %s [%d]", key, rv); return DECLINED; } @@ -443,8 +443,8 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *type, cons h->store_headers = &store_headers; h->remove_entity = &remove_entity; - ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, - "disk_cache: Serving Cached URL %s", dobj->name); + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, + "disk_cache: Recalled cached URL info header %s", dobj->name); return OK; } @@ -518,8 +518,8 @@ static apr_status_t recall_headers(cache_handle_t *h, request_rec *r) apr_file_close(dobj->hfd); - ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, - "disk_cache: Served headers for URL %s", dobj->name); + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, + "disk_cache: Recalled headers for URL %s", dobj->name); return APR_SUCCESS; } @@ -640,8 +640,8 @@ static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info /* XXX log message */ } - ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, - "disk_cache: Caching headers for URL %s", dobj->name); + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, + "disk_cache: Stored headers for URL %s", dobj->name); return APR_SUCCESS; } -- 2.50.1