diff options
author | Rob Austein <sra@hactrn.net> | 2007-12-23 00:19:07 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-12-23 00:19:07 +0000 |
commit | b0a6072d09ed835464f941d741e29b76c6df58b5 (patch) | |
tree | 0a8726799739b6fdf9d65ea527ed3c113d72632a /scripts/rpki/sql.py | |
parent | 8a65f4d8166d946a6a10fd4c869eb1b005d24879 (diff) |
Revocation and validity date changes appear to work now.
svn path=/scripts/rpki/sql.py; revision=1426
Diffstat (limited to 'scripts/rpki/sql.py')
-rw-r--r-- | scripts/rpki/sql.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/rpki/sql.py b/scripts/rpki/sql.py index ffeca909..b461a38c 100644 --- a/scripts/rpki/sql.py +++ b/scripts/rpki/sql.py @@ -51,7 +51,9 @@ def sql_assert_pristine(): def sql_sweep(gctx): """Write any dirty objects out to SQL.""" for s in sql_dirty.copy(): + rpki.log.debug("Sweeping %s" % repr(s)) s.sql_store(gctx) + sql_assert_pristine() def fetch_column(gctx, *query): """Pull a single column from SQL, return it as a list.""" @@ -507,8 +509,10 @@ class ca_detail_obj(sql_persistant): child_id = child.child_id, ca_detail_id = self.ca_detail_id, cert = cert) + rpki.log.debug("Created new child_cert %s" % repr(child_cert)) else: child_cert.cert = cert + rpki.log.debug("Reusing existing child_cert %s" % repr(child_cert)) child_cert.ski = cert.get_SKI() @@ -597,6 +601,7 @@ class child_cert_obj(sql_persistant): def revoke(self): """Mark a child cert as revoked.""" if self.revoked is None: + rpki.log.debug("Revoking %s" % repr(self)) self.revoked = rpki.sundial.datetime.utcnow() self.sql_mark_dirty() |