Skip to content

Commit

Permalink
add logging statement for finding cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Hweinstock committed Nov 8, 2024
1 parent acfdb61 commit d52e416
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/shared/sam/cli/samCliLocalInvoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ export class SamCliLocalInvokeInvocation {

public async execute(timeout?: Timeout): Promise<ChildProcess> {
await this.validate()

const start = Date.now()
const sam = await this.config.getOrDetectSamCli()
// eslint-disable-next-line aws-toolkits/no-console-log
console.log('getOrDetect took %O seconds', (Date.now() - start) / 1000)
if (!sam.path) {
getLogger().warn('SAM CLI not found and not configured')
} else if (sam.autoDetected) {
Expand Down

0 comments on commit d52e416

Please sign in to comment.