File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments