aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-11-12 00:36:51 +0000
committerRob Austein <sra@hactrn.net>2015-11-12 00:36:51 +0000
commitdd55d982548d76837e4a68331b2da3d973606f59 (patch)
tree9131bbf6ec610027ec5c054f28f523db477c19aa /rpki/pubd.py
parent09b20bf0236e78bf7dd0e61d674b3c56454c82b3 (diff)
More useful log messages on PDU handling exceptions.
Tweak publication callback mechanism to use uri instead of tag. svn path=/branches/tk705/; revision=6169
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index ee258f26..3ae8645a 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -205,7 +205,7 @@ class main(object):
r_pdu.set("tag", q_pdu.get("tag"))
except Exception, e:
- logger.exception("Exception processing PDU %r", q_pdu)
+ logger.exception("Exception processing PDU %r action = %s client_handle = %s", q_pdu, q_pdu.get("action"), q_pdu.get("client_handle"))
r_pdu = SubElement(r_msg, rpki.publication_control.tag_report_error, error_code = e.__class__.__name__)
r_pdu.text = str(e)
if q_pdu.get("tag") is not None:
@@ -278,7 +278,7 @@ class main(object):
self.session.expire_deltas()
except Exception, e:
- logger.exception("Exception processing PDU %r", q_pdu)
+ logger.exception("Exception processing PDU %r hash = %s uri = %s", q_pdu, q_pdu.get("hash"), q_pdu.get("uri"))
r_pdu = SubElement(r_msg, rpki.publication.tag_report_error, error_code = e.__class__.__name__)
r_pdu.text = str(e)
if q_pdu.get("tag") is not None: