]> granicus.if.org Git - apache/commitdiff
mod_disk_cache: Produce slightly more informative log messages and at more
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 5 Aug 2004 08:27:24 +0000 (08:27 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 5 Aug 2004 08:27:24 +0000 (08:27 +0000)
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

index 6366a3698d75cf58d5edce491f2d68df0ebe19d1..6e6465fd72c740f6a86639a48c98c76060196456 100644 (file)
@@ -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;
 }