mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Woops, forgot the second warn.
Also, differentiate the two log messages.
This commit is contained in:
parent
97eec84f4b
commit
2b5e1d3636
@ -1576,10 +1576,10 @@ smartlist_choose_by_bandwidth_weights(smartlist_t *sl,
|
|||||||
rule == WEIGHT_FOR_MID ||
|
rule == WEIGHT_FOR_MID ||
|
||||||
rule == WEIGHT_FOR_DIR);
|
rule == WEIGHT_FOR_DIR);
|
||||||
|
|
||||||
if (!sl || smartlist_len(sl) == 0) {
|
if (smartlist_len(sl) == 0) {
|
||||||
log_info(LD_CIRC,
|
log_info(LD_CIRC,
|
||||||
"Empty routerlist passed in to node selection for rule %d",
|
"Empty routerlist passed in to consensus weight node "
|
||||||
rule);
|
"selection for rule %d", rule);
|
||||||
return NULL;
|
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_EXIT ||
|
||||||
rule == WEIGHT_FOR_GUARD);
|
rule == WEIGHT_FOR_GUARD);
|
||||||
|
|
||||||
if (!sl || smartlist_len(sl) == 0) {
|
if (smartlist_len(sl) == 0) {
|
||||||
log_warn(LD_CIRC,
|
log_info(LD_CIRC,
|
||||||
"Empty routerlist passed in to node selection for rule %d",
|
"Empty routerlist passed in to old node selection for rule %d",
|
||||||
rule);
|
rule);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user