Skip to content

Commit 5b7aada

Browse files
committed
fix: console message
1 parent 3e8f020 commit 5b7aada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class ServerlessLambdaEdgePreExistingCloudFront {
2323
const events = functionObj.events.filter(
2424
(event) => event.preExistingCloudFront && this.checkAllowedDeployStage()
2525
)
26-
this.serverless.cli.consoleLog(
27-
`${functionArn} is associating to ${resolvedDistributionId} CloudFront Distribution. waiting for deployed status.`
28-
)
2926
for (let idx = 0; idx < events.length; idx += 1) {
3027
const event = events[idx]
3128

@@ -37,6 +34,9 @@ class ServerlessLambdaEdgePreExistingCloudFront {
3734
? this.resolveCfImportValue(this.provider, event.preExistingCloudFront.distributionId['Fn::ImportValue'])
3835
: event.preExistingCloudFront.distributionId
3936
)
37+
this.serverless.cli.consoleLog(
38+
`${functionArn} (Event: ${event.preExistingCloudFront.eventType}, pathPattern: ${event.preExistingCloudFront.pathPattern}) is associating to ${resolvedDistributionId} CloudFront Distribution. waiting for deployed status.`
39+
)
4040

4141
let retryCount = 5
4242

0 commit comments

Comments
 (0)