Show logs
Some checks failed
Test / tests (darwin-amd64) (push) Successful in 19s
Test / tests (windows-amd64) (push) Failing after 22s
Test / tests (linux-amd64) (push) Successful in 21s
Test / tests (linux-arm64) (push) Successful in 4m4s
Run Gosec / tests (push) Successful in 6m8s

This commit is contained in:
2025-09-09 16:14:23 +02:00
parent 58a8fe77a9
commit d7a9ac2968

View File

@@ -9,10 +9,8 @@ $vaultArgs = @(
"-dev-tls",
"-dev-root-token-id=root",
"-dev-listen-address=127.0.0.1:8200",
">>",
"vault-logs/stdout.log",
"2>>",
"vault-logs/stderr.log"
"-log-level=debug",
"-log-file=.\vault-logs\vault.log"
)
Write-Output "✅ Starting Vault server..."
@@ -31,6 +29,11 @@ if ($vaultProcess) {
Write-Output "✅ Vault process started with PID: $($vaultProcess.Id)"
} else {
Write-Output "❌ Could not find Vault process"
# Show logs
Write-Output "=== LOG (last 20 lines) ==="
Get-Content ".\vault-logs\vault.log" -ErrorAction SilentlyContinue | Select-Object -Last 20
exit 1
}
@@ -78,11 +81,8 @@ if (-not $isReady) {
Get-Process -Id $vaultPid -ErrorAction SilentlyContinue | Format-List *
# Show logs
Write-Output "=== STDOUT (last 20 lines) ==="
Get-Content "vault-logs/stdout.log" -ErrorAction SilentlyContinue | Select-Object -Last 20
Write-Output "=== STDERR (last 20 lines) ==="
Get-Content "vault-logs/stderr.log" -ErrorAction SilentlyContinue | Select-Object -Last 20
Write-Output "=== LOG (last 20 lines) ==="
Get-Content ".\vault-logs\vault.log" -ErrorAction SilentlyContinue | Select-Object -Last 20
# Cleanup
Stop-Process -Id $vaultPid -Force -ErrorAction SilentlyContinue