diff --git a/client/operation.go b/client/operation.go index addd1ff..97abd23 100644 --- a/client/operation.go +++ b/client/operation.go @@ -322,6 +322,7 @@ func (hc *houstonClient) launch(meta *procmeta) error { logWriter = func(buff []byte) { for written := 0; written < len(buff); { + os.Stdout.Write(buff) n, err := targetFile.Write(buff) if err != nil { logger.Println("write log file failed :", logfilePath, err) @@ -333,6 +334,9 @@ func (hc *houstonClient) launch(meta *procmeta) error { } } else { logger.Println("failed to create log file :", logfilePath, err) + logWriter = func(buff []byte) { + os.Stdout.Write(buff) + } } } else { logWriter = func(buff []byte) {