diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-12-10 17:22:28 -0600 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-12-10 17:22:28 -0600 |
commit | 1b855af5e33189d70d74273af03a535c343b63a5 (patch) | |
tree | 782f1c9c352a117c112ebe1e9988e39819660407 /src/feature/control | |
parent | 0906dde9d5ac409caf9f70ea7ec00efc42ec27ca (diff) | |
download | tor-1b855af5e33189d70d74273af03a535c343b63a5.tar.gz tor-1b855af5e33189d70d74273af03a535c343b63a5.zip |
Log bootstrap tag names
Add the bootstrap tag name to the log messages, so people
troubleshooting connection problems can look up a symbol instead of a
number. Closes ticket 28731.
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/control/control.c b/src/feature/control/control.c index 795902e6f4..8208b80c23 100644 --- a/src/feature/control/control.c +++ b/src/feature/control/control.c @@ -7153,7 +7153,7 @@ control_event_bootstrap_core(int loglevel, bootstrap_status_t status, status = progress; tor_log(loglevel, LD_CONTROL, - "Bootstrapped %d%%: %s", status, summary); + "Bootstrapped %d%% (%s): %s", status, tag, summary); tor_snprintf(buf, sizeof(buf), "BOOTSTRAP PROGRESS=%d TAG=%s SUMMARY=\"%s\"", status, tag, summary); @@ -7309,9 +7309,9 @@ control_event_bootstrap_problem(const char *warn, const char *reason, hostaddr = tor_strdup("?"); log_fn(severity, - LD_CONTROL, "Problem bootstrapping. Stuck at %d%%: %s. (%s; %s; " + LD_CONTROL, "Problem bootstrapping. Stuck at %d%% (%s): %s. (%s; %s; " "count %d; recommendation %s; host %s at %s)", - status, summary, warn, reason, + status, tag, summary, warn, reason, bootstrap_problems, recommendation, or_id, hostaddr); |