mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #44017 from corhere/timestamp-daemon-etw-logs
ci: print Windows daemon event log timestamps
This commit is contained in:
commit
ab37723fa2
1 changed files with 2 additions and 2 deletions
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
|
@ -472,9 +472,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
Get-WinEvent -ea SilentlyContinue `
|
Get-WinEvent -ea SilentlyContinue `
|
||||||
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
|
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
|
||||||
Select-Object -Property TimeCreated, @{N='Detailed Message'; E={$_.Message}} |
|
|
||||||
Sort-Object @{Expression="TimeCreated";Descending=$false} |
|
Sort-Object @{Expression="TimeCreated";Descending=$false} |
|
||||||
Select-Object -ExpandProperty 'Detailed Message' | Tee-Object -file ".\bundles\daemon.log"
|
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"} |
|
||||||
|
Tee-Object -file ".\bundles\daemon.log"
|
||||||
-
|
-
|
||||||
name: Upload reports
|
name: Upload reports
|
||||||
if: always()
|
if: always()
|
||||||
|
|
Loading…
Add table
Reference in a new issue