[or-cvs] r15009: actually start sending the bootstrap status event, so matt c (tor/trunk/src/or)

arma at seul.org arma at seul.org
Sat Jun 7 09:26:41 UTC 2008


Author: arma
Date: 2008-06-07 05:26:41 -0400 (Sat, 07 Jun 2008)
New Revision: 15009

Modified:
   tor/trunk/src/or/control.c
Log:
actually start sending the bootstrap status event, so matt
can start playing with it on his side.


Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2008-06-07 05:27:34 UTC (rev 15008)
+++ tor/trunk/src/or/control.c	2008-06-07 09:26:41 UTC (rev 15009)
@@ -3901,12 +3901,16 @@
 
   if (!boring)
 #endif
-  if (status > last_percent || (percent && percent > last_percent))
-    log_notice(LD_CONTROL, "Bootstrapped %d%% (last %d): %s.",
-               status, last_percent, bootstrap_status_to_string(status));
+  if (status > last_percent || (percent && percent > last_percent)) {
+    log_notice(LD_CONTROL, "Bootstrapped %d%%: %s.",
+               percent ? percent : status,
+               bootstrap_status_to_string(status));
+    control_event_client_status(LOG_NOTICE,
+        "BOOTSTRAP PROGRESS=%d SUMMARY=\"%s\"",
+        percent ? percent : status,
+        bootstrap_status_to_string(status));
+  }
 
-  /* ... This is where we tell the controller ... */
-
   if (percent > last_percent) /* incremental progress within a milestone */
     last_percent = percent;
   if (status > last_percent) /* new milestone reached */



More information about the tor-commits mailing list