aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-28 21:52:52 +0000
committerRob Austein <sra@hactrn.net>2014-05-28 21:52:52 +0000
commit918c574234813292f6ec7154f83cc9ace3a957ae (patch)
treea0adba1f741f5c7454d85383910681601033d108 /rpki/pubd.py
parent937db24e600d3b29d780575120250e47980de901 (diff)
Update all uses of rpki.log.traceback() for use with logging module.
svn path=/trunk/; revision=5838
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index 0cb4c6fd..5a345c4d 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -137,13 +137,12 @@ class main(object):
def done(body):
cb(200, body = body)
- rpki.log.trace()
try:
self.handler_common(query, None, done, (self.bpki_ta, self.irbe_cert))
except (rpki.async.ExitNow, SystemExit):
raise
except Exception, e:
- rpki.log.traceback()
+ rpki.log.traceback(logger)
cb(500, reason = "Unhandled exception %s: %s" % (e.__class__.__name__, e))
client_url_regexp = re.compile("/client/([-A-Z0-9_/]+)$", re.I)
@@ -156,7 +155,6 @@ class main(object):
def done(body):
cb(200, body = body)
- rpki.log.trace()
try:
match = self.client_url_regexp.search(path)
if match is None:
@@ -172,5 +170,5 @@ class main(object):
except (rpki.async.ExitNow, SystemExit):
raise
except Exception, e:
- rpki.log.traceback()
+ rpki.log.traceback(logger)
cb(500, reason = "Could not process PDU: %s" % e)