diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-29 19:18:40 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-29 19:18:40 +0000 |
commit | e6047c9f737275d898d88737719dd09a6ee4f25c (patch) | |
tree | 2741504894c594473b574146b632d0433a5b7186 /rpki/publication.py | |
parent | 839c6b3650472ac6c66fe0dadc87ac419a5a70d4 (diff) |
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
Diffstat (limited to 'rpki/publication.py')
-rw-r--r-- | rpki/publication.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpki/publication.py b/rpki/publication.py index 59650548..0efb0d76 100644 --- a/rpki/publication.py +++ b/rpki/publication.py @@ -432,7 +432,7 @@ class msg(rpki.xml_utils.msg, publication_namespace): def fail(e): if not isinstance(e, rpki.exceptions.NotFound): - rpki.log.traceback(logger) + logger.exception("Exception processing PDU %r", q_pdu) r_msg.append(report_error_elt.from_exception(e, q_pdu.tag)) cb(r_msg) |