[doctor/master] Sending notifications to David

commit c9a7e007e2c9461e3783bef433e85949515b93db Author: Damian Johnson <atagar@torproject.org> Date: Mon Oct 5 09:00:50 2015 -0700 Sending notifications to David Script has been playing nicely for a bit so lets start sending these David's way. After a week or so I'll start sending 'em to bad-relays@. Also tweaking the thresold to be 'greater than three per 30 days'. 'Greater or equal' is more to say, and having a tiny bit higher thresold will cut down on false alarms. --- fingerprint_change_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fingerprint_change_checker.py b/fingerprint_change_checker.py index 45ae4e0..c1d2474 100755 --- a/fingerprint_change_checker.py +++ b/fingerprint_change_checker.py @@ -61,7 +61,7 @@ def main(): # if we've changed more than three times in the last thirty days then alarm - if len(prior_fingerprints) >= 3: + if len(prior_fingerprints) > 3: alarm_for.add((relay.address, relay.or_port)) if alarm_for and not is_notification_suppressed(alarm_for): @@ -90,7 +90,7 @@ def main(): body += "\n" try: - util.send(EMAIL_SUBJECT, body = body, to = ['atagar@torproject.org']) + util.send(EMAIL_SUBJECT, body = body, to = ['atagar@torproject.org', 'dgoulet@torproject.org']) except Exception as exc: log.warn("Unable to send email: %s" % exc)
participants (1)
-
atagar@torproject.org