Skip to content

Commit

Permalink
Merge pull request #1196 from Chia-Network/improve-logging-id-stuff
Browse files Browse the repository at this point in the history
fix: improve log messages to include registryId for easier debugging
  • Loading branch information
TheLastCicada authored Oct 16, 2024
2 parents c7d57bf + a78a6cb commit 43dc5e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const syncOrganizationAudit = async (organization) => {

if (!lastRootSavedToAuditTable) {
logger.info(
`Syncing new registry ${organization.name} (store ${organization.orgUid})`,
`Syncing new registry ${organization.name} (orgUid ${organization.orgUid}, registryId ${organization.registryId})`,
);

logger.debug(`creating 'CREATE REGISTRY' audit entry`);
Expand Down Expand Up @@ -317,10 +317,10 @@ const syncOrganizationAudit = async (organization) => {
// Organization not synced, sync it
logger.info(' ');
logger.info(
`Syncing ${organization.name} generation index ${toBeProcessedDatalayerGenerationIndex} (store ${organization.orgUid})`,
`Syncing ${organization.name} generation index ${toBeProcessedDatalayerGenerationIndex} (orgUid ${organization.orgUid}, registryId ${organization.registryId})`,
);
logger.info(
`${organization.name} is ${syncRemaining} DataLayer generations away from being fully synced (store ${organization.orgUid}).`,
`${organization.name} is ${syncRemaining} DataLayer generations away from being fully synced (orgUid ${organization.orgUid}, registryId ${organization.registryId}).`,
);

if (!CONFIG.USE_SIMULATOR) {
Expand Down Expand Up @@ -395,7 +395,7 @@ const syncOrganizationAudit = async (organization) => {

if (!_.get(rootToBeProcessed, 'confirmed')) {
logger.info(
`Waiting for the latest root for ${organization.name} to confirm (store ${organization.orgUid})`,
`Waiting for the latest root for ${organization.name} to confirm (orgUid ${organization.orgUid}, registryId ${organization.registryId})`,
);
return;
}
Expand Down Expand Up @@ -434,7 +434,7 @@ const syncOrganizationAudit = async (organization) => {

const updateTransaction = async (transaction, mirrorTransaction) => {
logger.info(
`Syncing ${organization.name} generation ${toBeProcessedDatalayerGenerationIndex} (store ${organization.orgUid})`,
`Syncing ${organization.name} generation ${toBeProcessedDatalayerGenerationIndex} (orgUid ${organization.orgUid}, registryId ${organization.registryId})`,
);
if (_.isEmpty(optimizedKvDiff)) {
const auditData = {
Expand Down

0 comments on commit 43dc5e3

Please sign in to comment.