From e6047c9f737275d898d88737719dd09a6ee4f25c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 29 May 2014 19:18:40 +0000 Subject: Provide our own logging Formatter class rather than straining to subclass the stock one. Replace all uses of rpki.log.traceback() with logging package .exception() calls. Use LoggingAdapter for all the whacky per-stream logging code in rpki.http. Fix default logging priority for non-daemon programs like rpkic. svn path=/trunk/; revision=5843 --- rpki/pubd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpki/pubd.py') diff --git a/rpki/pubd.py b/rpki/pubd.py index 5a345c4d..e3498a27 100644 --- a/rpki/pubd.py +++ b/rpki/pubd.py @@ -142,7 +142,7 @@ class main(object): except (rpki.async.ExitNow, SystemExit): raise except Exception, e: - rpki.log.traceback(logger) + logger.exception("Unhandled exception processing control query, path %r", path) cb(500, reason = "Unhandled exception %s: %s" % (e.__class__.__name__, e)) client_url_regexp = re.compile("/client/([-A-Z0-9_/]+)$", re.I) @@ -170,5 +170,5 @@ class main(object): except (rpki.async.ExitNow, SystemExit): raise except Exception, e: - rpki.log.traceback(logger) + logger.exception("Unhandled exception processing client query, path %r", path) cb(500, reason = "Could not process PDU: %s" % e) -- cgit v1.2.3