Add info-level log messages during HS-client-state purge

I hope these will never be useful, but having them and not needing them is
better than needing them and not having them.
This commit is contained in:
Robert Ransom 2011-06-02 03:07:09 -07:00
parent d7af8a2f07
commit fc4158dad7
3 changed files with 8 additions and 1 deletions

View File

@ -7,3 +7,7 @@
refuse to fetch it again for up to 15 minutes. Bugfix on
0.2.2.25-alpha; fixes bug 3309.
o Minor features:
- Log (at info level) when purging pieces of hidden-service-client
state on SIGNAL NEWNYM.

View File

@ -469,6 +469,7 @@ rend_client_purge_last_hid_serv_requests(void)
last_hid_serv_requests_ = NULL;
if (old_last_hid_serv_requests != NULL) {
log_info(LD_REND, "Purging client last-HS-desc-request-time table");
strmap_free(old_last_hid_serv_requests, _tor_free);
}
}

View File

@ -839,8 +839,10 @@ rend_cache_clean(void)
void
rend_cache_purge(void)
{
if (rend_cache)
if (rend_cache) {
log_info(LD_REND, "Purging client/v0-HS-authority HS descriptor cache");
strmap_free(rend_cache, _rend_cache_entry_free);
}
rend_cache = strmap_new();
}