Skip to content

Commit 9ed2ecf

Browse files
authored
Improve daemon log dump error handling
Updated log dumping to handle missing log file gracefully.
1 parent 730c8eb commit 9ed2ecf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/windows-concurrency-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ jobs:
6464
- name: Dump daemon log after demo run 1
6565
if: always()
6666
shell: pwsh
67-
run: type "$env:TEMP\omnipkg\omnipkg_daemon.log"
67+
run: |
68+
$logFile = Get-ChildItem -Path "$env:TEMP\omnipkg" -Filter "omnipkg_daemon.log" -Recurse | Select-Object -First 1
69+
if ($logFile) {
70+
Get-Content $logFile.FullName
71+
} else {
72+
Write-Error "Could not find daemon log in $env:TEMP\omnipkg"
73+
}
6874
6975
- name: Run Demo Again (Verify Caching)
7076
shell: cmd

0 commit comments

Comments
 (0)