Skip to content

Commit

Permalink
feat: additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Sep 19, 2024
1 parent 6d95bab commit c965a53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ const syncOrganizationAudit = async (organization) => {
const rootHistoryZeroBasedCount = rootHistory.length - 1;
const syncRemaining = rootHistoryZeroBasedCount - lastProcessedIndex;
const isSynced = syncRemaining === 0;
logger.debug(`2 the root history length for ${organization.name} is ${rootHistory.length}
and the last processed generation is ${lastProcessedIndex}`);
logger.debug(`2 the highest root history index is ${rootHistoryZeroBasedCount},
given this and the last processed index, the number of generations left to sync is ${syncRemaining}`);

logger.debug(
`updating organization model with new sync status for ${organization.name}`,
Expand Down

0 comments on commit c965a53

Please sign in to comment.