INNER CODE UNIT · Go
getInstallerDebugLogs
ddev/ddev · winpkg/installer_test.go:27
func getInstallerDebugLogs(t *testing.T) string {
t.Helper()
// Get Windows temp directory
tempDir := os.Getenv("TEMP")
if tempDir == "" {
tempDir = os.Getenv("TMP")
}
if tempDir == "" {
t.Log("Could not determine Windows temp directory")
return ""
}
// Find all installer debug logs
pattern := filepath.Join(tempDir, "ddev_installer_debug_*.log")
matches, err := filepath.Glob(pattern)
if err != nil {
t.Logf("Error finding installer debug logs: %v", err)