Skip to content

Commit

Permalink
Merge branch 'master' into jiashunliu/ss-cve
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashun0011 authored Mar 14, 2024
2 parents cbd45bb + 1f16bc6 commit c7c38db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions staging/cse/windows/debug/collect-windows-logs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,19 @@ if ((Test-Path "c:\k\kubectl.exe") -and (Test-Path "c:\k\config")) {
}
}

# Collect extensions logs
if (Test-Path "C:\WindowsAzure\Logs\Plugins") {
$pluginLogsTempFolder="$ENV:TEMP\Extension-Logs-$timeStamp"
New-Item -ItemType Directory -Path $pluginLogsTempFolder > $null

Copy-Item -Recurse "C:\WindowsAzure\Logs\Plugins\*" $pluginLogsTempFolder -Passthru -ErrorAction Ignore

$tempFile=(CollectLogsFromDirectory -path $pluginLogsTempFolder -targetFileName "Extension-Logs.zip")
if ($tempFile -ne "") {
$paths += $tempFile
}
}

Write-Host "All logs collected: $paths"
Stop-Transcript

Expand Down

0 comments on commit c7c38db

Please sign in to comment.