aboutsummaryrefslogtreecommitdiff
path: root/rpki/rpkid.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-26 20:03:20 +0000
committerRob Austein <sra@hactrn.net>2016-06-26 20:03:20 +0000
commit86501361686231c6c5bed86d54a6cd9f24e473d9 (patch)
tree897fd0e81645b0bbcc5af87cac2b53491cee1bc6 /rpki/rpkid.py
parent30be8638e08cee11b8e12232af02fd2197a270e6 (diff)
Log resynchronization details.
svn path=/branches/tk705/; revision=6445
Diffstat (limited to 'rpki/rpkid.py')
-rw-r--r--rpki/rpkid.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpki/rpkid.py b/rpki/rpkid.py
index cc595af1..93de2777 100644
--- a/rpki/rpkid.py
+++ b/rpki/rpkid.py
@@ -770,14 +770,19 @@ class publication_queue(object):
for uri, obj in our_objs:
if uri not in pubd_objs:
+ logger.info("Resynchronization: adding object %s", uri)
SubElement(q_msg, rpki.publication.tag_publish, uri = uri).text = obj.get_Base64()
else:
h = pubd_objs.pop(uri)
if h != rpki.x509.sha256(obj.get_DER()).encode("hex"):
+ logger.info("Resynchronization: updating object %s", uri)
SubElement(q_msg, rpki.publication.tag_publish,
uri = uri, hash = h).text = obj.get_Base64()
+ else:
+ logger.info("Resynchronization: keeping object %s", uri)
for uri, h in pubd_objs.iteritems():
+ logger.info("Resynchronization: removing object %s", uri)
SubElement(q_msg, rpki.publication.tag_withdraw, uri = uri, hash = h)
yield repository.call_pubd(self.rpkid, q_msg)