Skip to content

Commit d52e416

Browse files
committed
add logging statement for finding cli
1 parent acfdb61 commit d52e416

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/shared/sam/cli/samCliLocalInvoke.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ export class SamCliLocalInvokeInvocation {
232232

233233
public async execute(timeout?: Timeout): Promise<ChildProcess> {
234234
await this.validate()
235-
235+
const start = Date.now()
236236
const sam = await this.config.getOrDetectSamCli()
237+
// eslint-disable-next-line aws-toolkits/no-console-log
238+
console.log('getOrDetect took %O seconds', (Date.now() - start) / 1000)
237239
if (!sam.path) {
238240
getLogger().warn('SAM CLI not found and not configured')
239241
} else if (sam.autoDetected) {

0 commit comments

Comments
 (0)