From c909c7d29c02045e9522125832015981d94f43c9 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Thu, 20 Jun 2024 19:33:39 +0200 Subject: [PATCH] logsush --- pkg/testing/fixture_install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testing/fixture_install.go b/pkg/testing/fixture_install.go index 712e52f66f4..138b9c0c64f 100644 --- a/pkg/testing/fixture_install.go +++ b/pkg/testing/fixture_install.go @@ -251,7 +251,7 @@ func (f *Fixture) installNoPkgManager(ctx context.Context, installOpts *InstallO psCommand := `Get-EventLog -LogName Application -Source "Elastic Agent" -Newest 1000` out, err := exec.Command("powershell", "-NoProfile", psCommand).CombinedOutput() if err != nil { - f.t.Logf("error executing command: %s", err) + f.t.Logf("error executing command: %s with output %s", err, string(out)) } else { if err := os.WriteFile(filePath, out, 0666); err != nil { f.t.Logf("error wrting file %s: %s", filePath, err)