From 91c5f8e90c33c41b58ff08aab639904913244e84 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 17 Mar 2010 20:59:26 +0000 Subject: Log host and port on connection failures, even if it's in an ugly format. svn path=/rpkid/rpki/https.py; revision=3120 --- rpkid/rpki/https.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpkid') 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): -- cgit v1.2.3