mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-23 09:41:38 +00:00
Remove spurious fmt.Print
This commit is contained in:
@ -47,7 +47,7 @@ func StartProcess(label string, execPath string, args []string, inFile io.Reader
|
|||||||
go func() {
|
go func() {
|
||||||
err := proc.Cmd.Wait()
|
err := proc.Cmd.Wait()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Process exit: %v\n", err)
|
// fmt.Printf("Process exit: %v\n", err)
|
||||||
if exitError, ok := err.(*exec.ExitError); ok {
|
if exitError, ok := err.(*exec.ExitError); ok {
|
||||||
proc.ExitState = exitError.ProcessState
|
proc.ExitState = exitError.ProcessState
|
||||||
}
|
}
|
||||||
@ -66,10 +66,10 @@ func StartProcess(label string, execPath string, args []string, inFile io.Reader
|
|||||||
func (proc *Process) StopProcess(kill bool) error {
|
func (proc *Process) StopProcess(kill bool) error {
|
||||||
defer proc.OutputFile.Close()
|
defer proc.OutputFile.Close()
|
||||||
if kill {
|
if kill {
|
||||||
fmt.Printf("Killing process %v\n", proc.Cmd.Process)
|
// fmt.Printf("Killing process %v\n", proc.Cmd.Process)
|
||||||
return proc.Cmd.Process.Kill()
|
return proc.Cmd.Process.Kill()
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("Stopping process %v\n", proc.Cmd.Process)
|
// fmt.Printf("Stopping process %v\n", proc.Cmd.Process)
|
||||||
return proc.Cmd.Process.Signal(os.Interrupt)
|
return proc.Cmd.Process.Signal(os.Interrupt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user