summaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-26 14:19:59 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-26 14:19:59 -0500
commit75d4bd34976536643b634f860b3d2c0e06d875ee (patch)
tree84a59b193338691835c4b73f0dbbba7ccf697e88 /src/or/dirvote.c
parent6ba2881aec7299fb486ab0f821c4f2ddcc88190e (diff)
downloadtor-75d4bd34976536643b634f860b3d2c0e06d875ee.tar.gz
tor-75d4bd34976536643b634f860b3d2c0e06d875ee.zip
Improve log when unable to add sigs to pending consensus
Closes ticket 24849.
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index ce82a5ef4a..e57f6d46f8 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -3551,7 +3551,13 @@ dirvote_add_signatures_to_pending_consensus(
}
r = networkstatus_add_detached_signatures(pc->consensus, sigs,
source, severity, msg_out);
- log_info(LD_DIR,"Added %d signatures to consensus.", r);
+ if (r >= 0) {
+ log_info(LD_DIR,"Added %d signatures to consensus.", r);
+ } else {
+ log_fn(LOG_PROTOCOL_WARN, LD_DIR,
+ "Unable to add signatures to consensus: %s",
+ *msg_out ? *msg_out : "(unknown)");
+ }
if (r >= 1) {
char *new_signatures =