summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-03-03 21:02:01 -0800
committerMike Perry <mikeperry-git@fscked.org>2010-03-03 21:02:01 -0800
commit2b5e1d363640e34ec803044f0f8d086dfdd40a6b (patch)
treee0825b56f5b0281c03e26924d8177ac409f2eb8f
parent97eec84f4bcc4908e47ebcb51f1eb1d3a782b42b (diff)
downloadtor-2b5e1d363640e34ec803044f0f8d086dfdd40a6b.tar.gz
tor-2b5e1d363640e34ec803044f0f8d086dfdd40a6b.zip
Woops, forgot the second warn.
Also, differentiate the two log messages.
-rw-r--r--src/or/routerlist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 392588cef4..a67703ca4b 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1576,10 +1576,10 @@ smartlist_choose_by_bandwidth_weights(smartlist_t *sl,
rule == WEIGHT_FOR_MID ||
rule == WEIGHT_FOR_DIR);
- if (!sl || smartlist_len(sl) == 0) {
+ if (smartlist_len(sl) == 0) {
log_info(LD_CIRC,
- "Empty routerlist passed in to node selection for rule %d",
- rule);
+ "Empty routerlist passed in to consensus weight node "
+ "selection for rule %d", rule);
return NULL;
}
@@ -1783,9 +1783,9 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule,
rule == WEIGHT_FOR_EXIT ||
rule == WEIGHT_FOR_GUARD);
- if (!sl || smartlist_len(sl) == 0) {
- log_warn(LD_CIRC,
- "Empty routerlist passed in to node selection for rule %d",
+ if (smartlist_len(sl) == 0) {
+ log_info(LD_CIRC,
+ "Empty routerlist passed in to old node selection for rule %d",
rule);
return NULL;
}