Skip to content

Commit 7b3403f

Browse files
committed
Discard output messages from the interpreter
1 parent e90ecb7 commit 7b3403f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ func runKernel(connectionFile string) {
9191
// Set up the "Session" with the replpkg.
9292
ir := classic.New()
9393

94+
// Throw out the error/warning messages that gomacro outputs writes to these streams.
95+
ir.Stdout = ioutil.Discard
96+
ir.Stderr = ioutil.Discard
97+
9498
// Parse the connection info.
9599
var connInfo ConnectionInfo
96100

0 commit comments

Comments
 (0)