Skip to content
Snippets Groups Projects
Commit 96014b1a authored by Damian Johnson's avatar Damian Johnson
Browse files

Suppress notifications for malformed dirreq-v3-ips lines

We've had a longstanding issue for months now where dirauths are accepting a
malformed extrainfo descriptor...

  https://trac.torproject.org/projects/tor/ticket/16858

No point in continuing to spam myself. Unfortunately this will mask other
legitimate issues until it's solved but meh - out of my hands.
parent e9047744
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ def main():
if not query.error:
count = len(list(query))
log.debug(" %i descriptors retrieved from %s in %0.2fs" % (count, query.download_url, query.runtime))
elif "'dirreq-v3-ips' line had non-ascii content" in str(query.error):
log.debug("Suppressing error due to malformed dirreq-v3-ips line: https://trac.torproject.org/projects/tor/ticket/16858")
else:
log.warn("Unable to retrieve the %s: %s" % (descriptor_type, query.error))
send_email(EMAIL_SUBJECT, descriptor_type, query)
......
......@@ -61,7 +61,7 @@ def main():
issues.append('%s => Downloading the consensus took %0.1f seconds' % (relay.fingerprint, download_time))
issue_percent = 100.0 * len(issues) / len(fallback_directories)
log.info('%i ssues found (%i%%)' % (len(issues), issue_percent))
log.info('%i issues found (%i%%)' % (len(issues), issue_percent))
if issue_percent >= NOTIFICATION_THRESHOLD:
log.info('Sending notification')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment