diff options
author | Rob Austein <sra@hactrn.net> | 2009-07-04 20:13:22 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-07-04 20:13:22 +0000 |
commit | 6462e03109be39a7e6e82ba5c49874d4652b5810 (patch) | |
tree | a1154f496b34145a4ac0797505f6619727af3fb2 /rpkid/rpki/https.py | |
parent | 6baa092a44b6ae9d1ffddc8fc6928c9bbb368124 (diff) |
Clean up and consolidate traceback. Add methods to hide (some of the)
mucking about with msg.type variables. Include query PDU tags in
reply <report_error/> PDUs.
svn path=/rpkid/irbe-setup.py; revision=2571
Diffstat (limited to 'rpkid/rpki/https.py')
-rw-r--r-- | rpkid/rpki/https.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rpkid/rpki/https.py b/rpkid/rpki/https.py index 3b1a609c..e27c353b 100644 --- a/rpkid/rpki/https.py +++ b/rpkid/rpki/https.py @@ -36,7 +36,7 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import time, socket, asyncore, asynchat, traceback, urlparse, sys +import time, socket, asyncore, asynchat, urlparse, sys import rpki.async, rpki.sundial, rpki.x509, rpki.exceptions, rpki.log import POW @@ -270,7 +270,7 @@ class http_stream(asynchat.async_chat): raise else: self.log("Error in HTTP stream handler") - print traceback.format_exc() + rpki.log.traceback() self.log("Closing due to error") self.close() @@ -427,7 +427,7 @@ class http_server(http_stream): except (rpki.async.ExitNow, SystemExit): raise except Exception, edata: - print traceback.format_exc() + rpki.log.traceback() self.send_error(500, "Unhandled exception %s" % edata) else: self.send_error(code = error[0], reason = error[1]) @@ -491,7 +491,7 @@ class http_listener(asyncore.dispatcher): raise else: self.log("Error in HTTP listener") - print traceback.format_exc() + rpki.log.traceback() class http_client(http_stream): @@ -673,7 +673,7 @@ class http_queue(object): raise except: self.log("Unhandled exception from callback") - rpki.log.error(traceback.format_exc()) + rpki.log.traceback() self.log("Queue: %r" % self.queue) |