diff --git a/CountItems/CountManager.js b/CountItems/CountManager.js index 4c401406..94051439 100644 --- a/CountItems/CountManager.js +++ b/CountItems/CountManager.js @@ -99,17 +99,17 @@ class CountManager { if (metricLevel === 'account' && !this.uniqueAccounts.has(resourceName)) { this.uniqueAccounts.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); - console.log(`uniqueAccount : ${this.uniqueAccounts}`); + console.log(`uniqueAccount : ${JSON.stringify(this.uniqueAccounts)}`); } if (metricLevel === 'location' && !this.uniqueLocations.has(resourceName)) { this.uniqueLocations.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); - console.log(`uniqueLocation : ${this.uniqueLocations}`); + console.log(`uniqueLocation : ${JSON.stringify(this.uniqueLocations)}`); } if (metricLevel === 'bucket' && !this.uniqueBuckets.has(resourceName)) { this.uniqueBuckets.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); - console.log(`uniqueBucket : ${this.uniqueBuckets}`); + console.log(`uniqueBucket : ${JSON.stringify(this.uniqueBuckets)}`); } console.log(`resourceName : ${resourceName}`); console.log(monitoring.metricsCount);