Skip to content

Commit

Permalink
escrow logs
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Griffin <[email protected]>
  • Loading branch information
m00sey committed Nov 27, 2024
1 parent 8f5720b commit d750040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/keri/db/basing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,12 +1224,9 @@ def clearEscrows(self):
('gpse', self.gpse, 'group partial signature escrow'),
('epse', self.epse, 'exchange partial signature escrow'),
('dune', self.dune, 'delegated unanchored escrow')]:
count = 0
for (k, _) in escrow.getItemIter():
count += 1
escrow.trim()
# logger.info(f"KEL: Cleared {count} escrows from ({name.ljust(5)}): {desc}")
logger.info(f"Cleared all escrows")
logger.info(f"KEL: Cleared escrow ({name.ljust(5)}): {desc}")
logger.info("Cleared KEL escrows")

@property
def current(self):
Expand Down
8 changes: 3 additions & 5 deletions src/keri/vdr/viring.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,11 @@ def clearEscrows(self):
('cmse', self.cmse, 'missing signature escrows'),
('tpwe', self.tpwe, 'partial witness escrows'),
('tmse', self.tmse, 'multisig escrows'),
('tede', self.tede, 'event dissemination escrows'),
('tede', self.tede, 'event dissemination escrows')
]:
count = 0
for (k, _) in sub.getItemIter():
count += 1
sub.trim()
logger.info(f"TEL: Cleared {count} escrows from ({name.ljust(5)}): {desc}")
logger.info(f"TEL: Cleared escrow ({name.ljust(5)}): {desc}")
logger.info("Cleared TEL escrows")

def cloneCreds(self, saids, db):
""" Returns fully expanded credential with chained credentials attached.
Expand Down

0 comments on commit d750040

Please sign in to comment.