Skip to content

Managed Dependencies: when purging, log the current number of dependency snapshots installed and how many (snapshots) we should keep #601

@Francisco-Gamino

Description

@Francisco-Gamino

When purging, log the current number of dependency snapshots installed and how many (snapshots) we should keep. The number of snapshots to keep is determined by the app setting MDMinNumberOfSnapshotsToKeep or 1 if the setting is not preset.

The log statement should be added at https://github.com/Azure/azure-functions-powershell-worker/blob/dev/src/DependencyManagement/DependencySnapshotPurger.cs#L75 right before we iterate through the list of snapshots.

The log message would be something like this:
Number of dependency snapshots installed: <number>. Dependency snapshots to keep: <number>

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions