commit 0191388312af47960f48c6a14c153b8795cdc5c9 Author: Damian Johnson atagar@torproject.org Date: Thu Mar 12 09:41:26 2015 -0700
Proper suppression for 'bandwidth auths differ' message
Suppression doesn't work for messages with highly dynamic content, so slipping in a hack to ignore those bits. With this suppression will work for messages like...
NOTICE: Bandwidth authorities have a substantially different number of measured entries: gabelmoo (7063), tor26 (7056), moria1 (7183), longclaw (5214) --- consensus_health_checker.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/consensus_health_checker.py b/consensus_health_checker.py index b807497..2e15720 100755 --- a/consensus_health_checker.py +++ b/consensus_health_checker.py @@ -132,6 +132,11 @@ class Issue(object): attr.update({'unmeasured': 0, 'total': 0, 'percentage': 0})
return CONFIG['msg'][self._template].format(**attr).replace(' ', '_') + elif self._template == 'BANDWIDTH_AUTHORITIES_OUT_OF_SYNC': + attr = dict(self._attr) + attr.update({'authorities': ''}) + + return CONFIG['msg'][self._template].format(**attr).replace(' ', '_') else: return self.get_message().replace(' ', '_')
tor-commits@lists.torproject.org