Skip to content

Commit f9f31c7

Browse files
authored
fix small 'pretty sandbox' qa bugs (#2592)
1 parent 8f59d16 commit f9f31c7

File tree

6 files changed

+164
-127
lines changed

6 files changed

+164
-127
lines changed

.changeset/easy-points-shop.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@aws-amplify/backend-function': patch
3+
'@aws-amplify/cli-core': patch
4+
'@aws-amplify/sandbox': patch
5+
---
6+
7+
fix pretty sandbox qa bugs

packages/backend-function/src/factory.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ import {
3333
LayerVersion,
3434
Runtime,
3535
} from 'aws-cdk-lib/aws-lambda';
36-
import { NodejsFunction, OutputFormat } from 'aws-cdk-lib/aws-lambda-nodejs';
36+
import {
37+
LogLevel as EsBuildLogLevel,
38+
NodejsFunction,
39+
OutputFormat,
40+
} from 'aws-cdk-lib/aws-lambda-nodejs';
3741
import { Construct } from 'constructs';
3842
import { readFileSync } from 'fs';
3943
import { createRequire } from 'module';
@@ -592,6 +596,7 @@ class AmplifyFunction
592596
banner: bannerCode,
593597
inject: shims,
594598
externalModules: Object.keys(props.layers),
599+
logLevel: EsBuildLogLevel.ERROR,
595600
},
596601
logRetention: cdkLoggingOptions.retention,
597602
applicationLogLevelV2: cdkLoggingOptions.level,

0 commit comments

Comments
 (0)