From dd55d982548d76837e4a68331b2da3d973606f59 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 12 Nov 2015 00:36:51 +0000 Subject: More useful log messages on PDU handling exceptions. Tweak publication callback mechanism to use uri instead of tag. svn path=/branches/tk705/; revision=6169 --- 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 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: -- cgit v1.2.3