Skip to content

Commit

Permalink
fix: console message
Browse files Browse the repository at this point in the history
  • Loading branch information
mordka committed Dec 9, 2020
1 parent 3e8f020 commit 5b7aada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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

Expand Down

0 comments on commit 5b7aada

Please sign in to comment.