]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add info-level log messages during HS-client-state purge
authorRobert Ransom <rransom.8774@gmail.com>
Thu, 2 Jun 2011 10:07:09 +0000 (03:07 -0700)
committerRobert Ransom <rransom.8774@gmail.com>
Thu, 2 Jun 2011 10:07:09 +0000 (03:07 -0700)
I hope these will never be useful, but having them and not needing them is
better than needing them and not having them.

changes/bug3309
src/or/rendclient.c
src/or/rendcommon.c

index 5df0d9d3485a68153845d5babdf2c54b7a061d22..104056d8e32fc426843d6969d0b3be9bc4c60b2c 100644 (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.
+
index 329b2567d68e5c75703b1fcf36d1251112c5aaa0..533dfb8a970648fd7d8ba519d8274ec883a62080 100644 (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);
   }
 }
index 4d4a90f61a885d0363b03ff67eb844203d585475..683e11ad24a21848829786e86f80a4e3f7c9329f 100644 (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();
 }