From 03f4dcc02b87db6f881f7d334d64a2bd4dcad04c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 20 Jul 2012 13:21:33 +1200 Subject: Extend test suite to cover SSL. Log SSL connection errors. --- libpathod/pathod.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libpathod/pathod.py') diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 1f4ff760..5eb91f7a 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -26,7 +26,14 @@ class PathodHandler(tcp.BaseHandler): self.server.ssloptions["keyfile"], ) except tcp.NetLibError, v: - self.info(v) + s = str(v) + self.server.add_log( + dict( + type = "error", + msg = s + ) + ) + self.info(s) self.finish() while not self.finished: -- cgit v1.2.3