more robust error logging
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
c05abda434
commit
e4b1e51a90
|
|
@ -77,7 +77,7 @@ $iter = 0
|
||||||
while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity_job.State -eq "NotStarted")) {
|
while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity_job.State -eq "NotStarted")) {
|
||||||
$iter++
|
$iter++
|
||||||
foreach ($job in Get-Job) {
|
foreach ($job in Get-Job) {
|
||||||
if ($job -eq $csi_grpc_proxy_job -and $iter -gt 20) {
|
if (($job -eq $csi_grpc_proxy_job) -and ($iter -gt 20)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
@ -85,6 +85,9 @@ while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
if ($job.State -ne "Failed") {
|
if ($job.State -ne "Failed") {
|
||||||
|
Write-Output "failure receiving job data"
|
||||||
|
$job | ConvertTo-Json | Write-Output
|
||||||
|
Write-Output $_
|
||||||
throw $_
|
throw $_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue