Commit d3275696 authored by juga's avatar juga
Browse files

fix: v3bwfile: Lower log level about no observed bw

Because it might happen due fetching "early", "useless" descriptors or
non running relays, so that there aren't too many warnings.

Closes #40116.
parent 70103358
Pipeline #23343 passed with stages
in 25 minutes and 9 seconds
......@@ -1021,7 +1021,9 @@ class V3BWLine(object):
if desc_bw_obs_ls:
return round(mean(desc_bw_obs_ls))
log.warning("Descriptor observed bandwidth is None.")
"Descriptor observed bandwidth is None. Can't calculate mean."
return None
......@@ -1030,7 +1032,7 @@ class V3BWLine(object):
for r in reversed(results):
if r.relay_observed_bandwidth is not None:
return r.relay_observed_bandwidth
log.warning("Descriptor observed bandwidth is None.")"Descriptor observed bandwidth is None. Can't get the last.")
return None
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment