Fix Windows logging attachment (#870)

This commit is contained in:
xiantang
2026-01-20 23:28:51 +08:00
committed by GitHub
parent ca0794e771
commit c8a381f662
-6
View File
@@ -51,12 +51,6 @@ func (e *Engine) startCmd(cmd string) (*exec.Cmd, io.ReadCloser, io.ReadCloser,
// Use -NoProfile and -NonInteractive for better performance
c := exec.Command("powershell", "-NoProfile", "-NonInteractive", "-Command", cmd)
// Hide the PowerShell console window
c.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
CreationFlags: windows.CREATE_NO_WINDOW,
}
stderr, err := c.StderrPipe()
if err != nil {
return nil, nil, nil, err