Update testTaskGate.ps1

This commit is contained in:
2025-05-26 23:47:17 -04:00
parent 085078c808
commit bd9515b76a

View File

@@ -244,7 +244,7 @@ function Handle-FetchSites {
$Context.Response.OutputStream.Write($bytes, 0, $bytes.Length)
} catch {
Write-LogHybrid "Handle-FetchSites failed: $($_.Exception.Message)" "Error" "Server"
Write-LogHybrid -Message "Handle-FetchSites failed: $($_.Exception.Message)" -Level "Error" -TaskCategory "Server" -LogToEvent:$true
$Context.Response.StatusCode = 500
$Context.Response.OutputStream.Write([Text.Encoding]::UTF8.GetBytes("[]"), 0, 2)
} finally {