1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: debug lifecycle only when have new stages (#8418)

This commit is contained in:
Jaanus Sellin 2024-10-10 14:28:11 +03:00 committed by sjaanus
parent da4acd07f5
commit 82750207f3
No known key found for this signature in database
GPG Key ID: 20E007C0248BA7FF

View File

@ -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)}`,
);