diff options
author | Valery Piashchynski <[email protected]> | 2020-12-19 16:16:29 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-19 16:16:29 +0300 |
commit | d8762242ff7c33851056ce237860c7a93dccdf94 (patch) | |
tree | 5e894dc9b3b252f83fcdc9aed8462af5757cbc30 | |
parent | e549066853c9fb37b359af442777126dc1f748d7 (diff) |
Update pipe_factory error message.
-rw-r--r-- | pipe_factory.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pipe_factory.go b/pipe_factory.go index 9696a474..e9e750c4 100644 --- a/pipe_factory.go +++ b/pipe_factory.go @@ -2,10 +2,11 @@ package roadrunner import ( "fmt" - "github.com/pkg/errors" - "github.com/spiral/goridge/v2" "io" "os/exec" + + "github.com/pkg/errors" + "github.com/spiral/goridge/v2" ) // PipeFactory connects to workers using standard @@ -50,7 +51,7 @@ func (f *PipeFactory) SpawnWorker(cmd *exec.Cmd) (w *Worker, err error) { err := w.Kill() if err != nil { // there is no logger here, how to handle error in goroutines ? - fmt.Println(fmt.Sprintf("error killing the worker with PID number %d, Created: %s", w.Pid, w.Created)) + fmt.Printf("error killing the worker with PID number %d, Created: %s", w.Pid, w.Created) } }(w) |