aboutsummaryrefslogtreecommitdiff
path: root/samplejobs
diff options
context:
space:
mode:
Diffstat (limited to 'samplejobs')
-rwxr-xr-xsamplejobs/BWAuthChecker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/samplejobs/BWAuthChecker.py b/samplejobs/BWAuthChecker.py
index b79ffc2..dca17b5 100755
--- a/samplejobs/BWAuthChecker.py
+++ b/samplejobs/BWAuthChecker.py
@@ -36,7 +36,8 @@ class BWAuthChecker(JobBase.JobBase):
elif len(lines) < 8300:
body = "The bandwidth file has a low number of relays: " + str(len(lines)) + "\n"
except Exception as e:
- body = "Caught an exception checking the bwandwidth file timestamp:\n\n" + str(e)
+ body = "Caught an exception checking the bwandwidth file timestamp:\n\n" + repr(e)
+ body += "\n" + logging.traceback.format_exc()
url = "https://bwauth.ritter.vg/bwauth/AA_percent-measured.txt"
try:
@@ -57,6 +58,7 @@ class BWAuthChecker(JobBase.JobBase):
body += "\n\nMeasured percentant of all tor nodes is low: " + str(percent)
except Exception as e:
body += "\n\nCaught an exception measuring the percentage of relays measured:\n\n" + str(e)
+ body += "\n" + logging.traceback.format_exc()
url = "https://bwauth.ritter.vg/bwauth/AA_scanner_loop_times.txt"
@@ -85,6 +87,7 @@ class BWAuthChecker(JobBase.JobBase):
body += "Scanner " + str(t) + " appears to be several days behind schedule."
except Exception as e:
body += "\n\nCaught an exception measuring the scanner loop times:\n\n" + str(e)
+ body += "\n" + logging.traceback.format_exc()
if body:
logging.warn("tor bwauth is broken?")