mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
actually start sending the bootstrap status event, so matt
can start playing with it on his side. svn:r15009
This commit is contained in:
parent
5aeb89447e
commit
00fcd66218
1 changed files with 9 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue