From 5b7aadaa0930f61eeca7eaf43b29e7ab2b53b2fd Mon Sep 17 00:00:00 2001 From: mordka Date: Wed, 9 Dec 2020 23:41:17 +0100 Subject: [PATCH] fix: console message --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index f5b79a1..3c824a0 100644 --- a/index.js +++ b/index.js @@ -23,9 +23,6 @@ class ServerlessLambdaEdgePreExistingCloudFront { const events = functionObj.events.filter( (event) => event.preExistingCloudFront && this.checkAllowedDeployStage() ) - this.serverless.cli.consoleLog( - `${functionArn} is associating to ${resolvedDistributionId} CloudFront Distribution. waiting for deployed status.` - ) for (let idx = 0; idx < events.length; idx += 1) { const event = events[idx] @@ -37,6 +34,9 @@ class ServerlessLambdaEdgePreExistingCloudFront { ? this.resolveCfImportValue(this.provider, event.preExistingCloudFront.distributionId['Fn::ImportValue']) : event.preExistingCloudFront.distributionId ) + this.serverless.cli.consoleLog( + `${functionArn} (Event: ${event.preExistingCloudFront.eventType}, pathPattern: ${event.preExistingCloudFront.pathPattern}) is associating to ${resolvedDistributionId} CloudFront Distribution. waiting for deployed status.` + ) let retryCount = 5