]> granicus.if.org Git - apache/commitdiff
Cut an info log entry for each object we cache. Is this too much to log?
authorBill Stoddard <stoddard@apache.org>
Wed, 18 Dec 2002 21:03:30 +0000 (21:03 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 18 Dec 2002 21:03:30 +0000 (21:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98020 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index 353ce645e7155e4b8d866576ca8582fff3809e09..aaf117a2d67f2c3f5acb08f85121196eece8bd0f 100644 (file)
@@ -953,6 +953,8 @@ static apr_status_t write_body(cache_handle_t *h, request_rec *r, apr_bucket_bri
             apr_os_file_get(&(mobj->fd), tmpfile);
 
             /* Open for business */
+            ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
+                         "mem_cache: Cached file: %s with key: %s", name, obj->key);
             obj->complete = 1;
             return APR_SUCCESS;
         }
@@ -1009,6 +1011,8 @@ static apr_status_t write_body(cache_handle_t *h, request_rec *r, apr_bucket_bri
                 }
             }
             /* Open for business */
+            ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
+                         "mem_cache: Cached url: %s", obj->key);
             obj->complete = 1;
             break;
         }