aboutsummaryrefslogtreecommitdiff
path: root/connector/external/external.go
diff options
context:
space:
mode:
Diffstat (limited to 'connector/external/external.go')
-rw-r--r--connector/external/external.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/connector/external/external.go b/connector/external/external.go
index 553c657..d4a6caf 100644
--- a/connector/external/external.go
+++ b/connector/external/external.go
@@ -152,12 +152,11 @@ func (ext *External) setupProc(generation int) error {
if ext.debug {
recv = io.TeeReader(recv, os.Stderr)
send = io.MultiWriter(send, os.Stderr)
+ ext.proc.Stderr = os.Stderr
}
ext.sendJson = json.NewEncoder(send)
- ext.proc.Stderr = os.Stderr
-
err = ext.proc.Start()
if err != nil {
return err
@@ -250,7 +249,7 @@ func (ext *External) recvLoop(from io.Reader, generation int) {
break
}
- log.Debugf("GOT MESSAGE: %#v %#v", msg, msg.Data)
+ log.Tracef("GOT MESSAGE: %#v %#v", msg, msg.Data)
if strings.HasPrefix(msg.MsgType, "rep_") {
func() {
ext.lock.Lock()