Commit c9a7e007 authored by Damian Johnson's avatar Damian Johnson
Browse files

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.
parent e3bed9a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)