Skip to content

Commit 0722c2d

Browse files
fixing supportpackage log rotation
1 parent 89f3d8e commit 0722c2d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

PSFramework/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## ???
4+
5+
- Fix: New-PSFSupportPackage - debug dumps in task mode were not correctly rotated.
6+
37
## 1.13.416 (2025-10-22)
48

59
- Fix: Invoke-PSFRunspace - errors incorrectly show PSFramework error, rather than actual errors.

PSFramework/functions/utility/New-PSFSupportPackage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
$TaskName,
9393

9494
[int]
95-
$TaskRetentionCount = (Get-PSFConfigValue -FullName 'Utility.SupportPackage.TaskDumpLimit'),
95+
$TaskRetentionCount = (Get-PSFConfigValue -FullName 'PSFramework.Utility.SupportPackage.TaskDumpLimit'),
9696

9797
[switch]
9898
$Force,
@@ -348,7 +348,7 @@
348348
}
349349
end {
350350
if ($PSCmdlet.ParameterSetName -eq 'Task') {
351-
Get-ChildItem -Path $outputPath -Force -Filter *.cliDat |
351+
Get-ChildItem -Path $outputPath -Force -Filter *.zip |
352352
Microsoft.PowerShell.Utility\Sort-Object LastWriteTime -Descending |
353353
Microsoft.PowerShell.Utility\Select-Object -Skip $TaskRetentionCount |
354354
Remove-Item -Force

0 commit comments

Comments
 (0)