add debug output for start command

This commit is contained in:
Benson Wong
2025-06-18 07:43:23 -07:00
parent 54c519e365
commit 2ae48c713b

View File

@@ -189,6 +189,7 @@ func (p *Process) start() error {
p.waitStarting.Add(1) p.waitStarting.Add(1)
defer p.waitStarting.Done() defer p.waitStarting.Done()
cmdContext, ctxCancelUpstream := context.WithCancel(context.Background()) cmdContext, ctxCancelUpstream := context.WithCancel(context.Background())
p.proxyLogger.Debugf("<%s> Executing start command: %s", p.ID, strings.Join(args, " "))
p.cmd = exec.CommandContext(cmdContext, args[0], args[1:]...) p.cmd = exec.CommandContext(cmdContext, args[0], args[1:]...)
p.cmd.Stdout = p.processLogger p.cmd.Stdout = p.processLogger
p.cmd.Stderr = p.processLogger p.cmd.Stderr = p.processLogger