From 82750207f329f7d7c6923b5cac957e3428363c13 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Thu, 10 Oct 2024 14:28:11 +0300 Subject: [PATCH] chore: debug lifecycle only when have new stages (#8418) --- .../features/feature-lifecycle/feature-lifecycle-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/features/feature-lifecycle/feature-lifecycle-service.ts b/src/lib/features/feature-lifecycle/feature-lifecycle-service.ts index 5fc8e136d2..6aecea869d 100644 --- a/src/lib/features/feature-lifecycle/feature-lifecycle-service.ts +++ b/src/lib/features/feature-lifecycle/feature-lifecycle-service.ts @@ -132,7 +132,10 @@ export class FeatureLifecycleService { } private recordStagesEntered(newlyEnteredStages: NewStage[]) { - if (this.flagResolver.isEnabled('trackLifecycleMetrics')) { + if ( + this.flagResolver.isEnabled('trackLifecycleMetrics') && + newlyEnteredStages.length > 0 + ) { this.logger.info( `recordStagesEntered parameter ${JSON.stringify(newlyEnteredStages)}`, );