diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-07 09:26:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-07 09:26:41 +0000 |
commit | 00fcd66218282d8bf655820c0609a67d96500d3a (patch) | |
tree | 9a5aa22788c0759c46c299cca12b281922472a2c /src/or/control.c | |
parent | 5aeb89447ef1683477f2ac22c91cba5f6444557d (diff) | |
download | tor-00fcd66218282d8bf655820c0609a67d96500d3a.tar.gz tor-00fcd66218282d8bf655820c0609a67d96500d3a.zip |
actually start sending the bootstrap status event, so matt
can start playing with it on his side.
svn:r15009
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/or/control.c b/src/or/control.c index edfa1c775b..c4a4e4932c 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3901,11 +3901,15 @@ control_event_bootstrap(bootstrap_status_t status, int percent) 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)); - - /* ... This is where we tell the controller ... */ + 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)); + } if (percent > last_percent) /* incremental progress within a milestone */ last_percent = percent; |