Skip to content

Commit

Permalink
chore: improve logger for get replicated tables process
Browse files Browse the repository at this point in the history
  • Loading branch information
limcross committed Nov 8, 2022
1 parent 395d7c1 commit 32087ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/_get-replicated-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let { updater } = require('@architect/utils')

module.exports = async (arc, stage, dryRun, appName, primaryRegion, currentRegion) => {
const update = updater('MultiRegion')
update.start(`Fetching replicated tables in the replica region (${currentRegion})...`)
update.start(`Fetching replica tables in the replica region (${currentRegion})...`)

let dynamoReplica = new aws.DynamoDB({ region: currentRegion }) // The current region is a replica region
let ssmPrimary = new aws.SSM({ region: primaryRegion })
Expand Down Expand Up @@ -58,7 +58,9 @@ module.exports = async (arc, stage, dryRun, appName, primaryRegion, currentRegio
}
}

update.done(`Replicated tables in replica region fetched`, tableNames)
update.done(`Replica tables in the replica region (${currentRegion}) fetched`)

update.status(`Fetched replica tables in the replica region (${currentRegion})`, tableNames)

return tables
}

0 comments on commit 32087ca

Please sign in to comment.