From 32087caaa9f429afc490ccfe251b52fd46b35e35 Mon Sep 17 00:00:00 2001 From: limcross Date: Mon, 7 Nov 2022 21:26:00 -0300 Subject: [PATCH] chore: improve logger for get replicated tables process --- src/_get-replicated-tables.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/_get-replicated-tables.js b/src/_get-replicated-tables.js index 14cc398..31279dd 100644 --- a/src/_get-replicated-tables.js +++ b/src/_get-replicated-tables.js @@ -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 }) @@ -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 }