We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d585b commit aab5b8fCopy full SHA for aab5b8f
1 file changed
executor/executable/controllabletask.go
@@ -29,6 +29,7 @@ import (
29
"encoding/json"
30
"errors"
31
"io"
32
+ "io/ioutil"
33
"reflect"
34
"strings"
35
"syscall"
@@ -146,6 +147,13 @@ func (t *ControllableTask) Launch() error {
146
147
WithField("task", t.ti.Name).
148
WriterLevel(logrus.WarnLevel), stderrIn)
149
}()
150
+ default:
151
+ go func() {
152
+ _, errStdout = io.Copy(ioutil.Discard, stdoutIn)
153
+ }()
154
155
+ _, errStderr = io.Copy(ioutil.Discard, stderrIn)
156
157
}
158
159
log.WithFields(logrus.Fields{
0 commit comments