diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-17 15:05:32 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:41 -0400 |
commit | 63ca307127f70f2df3da20d50ecc545939658991 (patch) | |
tree | 3e108b0339ab7920a3ddccd13529ef9a089793e7 /src | |
parent | edea0441477cf7f1293ce848abf59b3f1033b28a (diff) | |
download | tor-63ca307127f70f2df3da20d50ecc545939658991.tar.gz tor-63ca307127f70f2df3da20d50ecc545939658991.zip |
prop250: Improve log messages
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/or/shared_random.c | 6 | ||||
-rw-r--r-- | src/or/shared_random_state.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/or/shared_random.c b/src/or/shared_random.c index c5a62a754a..15c33af60c 100644 --- a/src/or/shared_random.c +++ b/src/or/shared_random.c @@ -1102,8 +1102,8 @@ sr_parse_commit(const smartlist_t *args) rsa_identity_fpr = smartlist_get(args, 2); if (base16_decode(digest, DIGEST_LEN, rsa_identity_fpr, HEX_DIGEST_LEN) < 0) { - log_warn(LD_DIR, "SR: RSA fingerprint '%s' not decodable", - rsa_identity_fpr); + log_warn(LD_DIR, "SR: RSA fingerprint %s not decodable", + escaped(rsa_identity_fpr)); goto error; } /* Let's make sure, for extra safety, that this fingerprint is known to @@ -1112,7 +1112,7 @@ sr_parse_commit(const smartlist_t *args) if (trusteddirserver_get_by_v3_auth_digest(digest) == NULL) { log_warn(LD_DIR, "SR: Fingerprint %s is not from a recognized " "authority. Discarding commit.", - rsa_identity_fpr); + escaped(rsa_identity_fpr)); goto error; } diff --git a/src/or/shared_random_state.c b/src/or/shared_random_state.c index 9700bf5b26..cce0c99939 100644 --- a/src/or/shared_random_state.c +++ b/src/or/shared_random_state.c @@ -1122,7 +1122,7 @@ sr_state_update(time_t valid_after) char tbuf[ISO_TIME_LEN + 1]; format_iso_time(tbuf, valid_after); log_info(LD_DIR, "SR: State prepared for new voting period (%s). " - "Current phase is %s (%d/%d).", + "Current phase is %s (%d commit & %d reveal rounds).", tbuf, get_phase_str(sr_state->phase), sr_state->n_commit_rounds, sr_state->n_reveal_rounds); } |