[tor-commits] [sbws/master] relayprioritizer: comment debug log, too many lines
juga at torproject.org
juga at torproject.org
Fri Feb 15 17:51:28 UTC 2019
commit 7f743a8c76ca1e2514b6fe4df7517add77daf449
Author: juga0 <juga at riseup.net>
Date: Tue Dec 18 09:10:32 2018 +0000
relayprioritizer: comment debug log, too many lines
After several iterations, the number of relays that are prioritized
is high, this log prints so many lines.
---
sbws/lib/relayprioritizer.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sbws/lib/relayprioritizer.py b/sbws/lib/relayprioritizer.py
index 9c065a7..ee79a19 100644
--- a/sbws/lib/relayprioritizer.py
+++ b/sbws/lib/relayprioritizer.py
@@ -81,11 +81,11 @@ class RelayPrioritizer:
# is no longer valid
freshness = result.time - oldest_allowed
if isinstance(result, ResultError) \
- and prioritize_result_error is True:
- log.debug('Cutting freshness for a %s result by %d%% for '
- '%s', result.type.value,
- result.freshness_reduction_factor * 100,
- relay.nickname)
+ and prioritize_result_error is True:
+ # log.debug('Cutting freshness for a %s result by %d%% for'
+ # ' %s', result.type.value,
+ # result.freshness_reduction_factor * 100,
+ # relay.nickname)
# result.freshness_reduction_factor are hard-coded values
# on how much prioritize measurements that failed
# depending on the type of error.
More information about the tor-commits
mailing list