aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-03-17 20:59:26 +0000
committerRob Austein <sra@hactrn.net>2010-03-17 20:59:26 +0000
commit91c5f8e90c33c41b58ff08aab639904913244e84 (patch)
treed8a29f88a24639d9f709f865155086ee15397274 /rpkid
parent5ac12708da363c9263a24e3e7b79352a4e8a4c7e (diff)
Log host and port on connection failures, even if it's in an ugly
format. svn path=/rpkid/rpki/https.py; revision=3120
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):