Skip to content

Commit 2159fce

Browse files
fix: Do not list functions when removing LLD (#143)
1 parent 9296d1d commit 2159fce

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/configuration.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ function saveDiscoveredLambdas(lambdasListNew: LambdaResource[]) {
185185
for (const lambda of lambdasListNew) {
186186
addLambda(lambda);
187187
}
188-
189-
Logger.log('Found the following Lambdas to debug:');
190-
Logger.log(
191-
` - ${getLambdasFiltered()
192-
.map((f) => `${f.functionName} code: ${f.codePath}`)
193-
.join('\n - ')}`,
194-
);
195188
}
196189
}
197190

src/lldebugger.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ async function run() {
7676

7777
await Configuration.discoverLambdas();
7878

79+
if (!Configuration.config.remove) {
80+
Logger.log('Found the following Lambdas to debug:');
81+
Logger.log(
82+
` - ${Configuration.getLambdasFiltered()
83+
.map((f) => `${f.functionName} code: ${f.codePath}`)
84+
.join('\n - ')}`,
85+
);
86+
}
87+
7988
if (Configuration.config.remove) {
8089
const removalChanges = await InfraDeploy.getInfraChangesForRemoving();
8190

0 commit comments

Comments
 (0)