aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/rpki/https.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpkid/rpki/https.py b/rpkid/rpki/https.py
index 14da7d0e..3a91dccc 100644
--- a/rpkid/rpki/https.py
+++ b/rpkid/rpki/https.py
@@ -645,9 +645,11 @@ class http_client(http_stream):
self.queue.detach(self)
def handle_error(self):
+ eclass, edata = sys.exc_info()[0:2]
+ self.log("Error on HTTP client connection %r: %s %s" % (self.hostport, eclass, edata), rpki.log.warn)
http_stream.handle_error(self)
self.queue.detach(self)
- self.queue.return_result(sys.exc_info()[1])
+ self.queue.return_result(edata)
class http_queue(object):