Forward stdout and stderr from plugin to tusd
This commit is contained in:
parent
ea62277eb8
commit
bccca4935a
|
@ -3,6 +3,7 @@ package hooks
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"net/rpc"
|
"net/rpc"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/hashicorp/go-plugin"
|
"github.com/hashicorp/go-plugin"
|
||||||
|
@ -23,6 +24,8 @@ func (h *PluginHook) Setup() error {
|
||||||
HandshakeConfig: handshakeConfig,
|
HandshakeConfig: handshakeConfig,
|
||||||
Plugins: pluginMap,
|
Plugins: pluginMap,
|
||||||
Cmd: exec.Command(h.Path),
|
Cmd: exec.Command(h.Path),
|
||||||
|
SyncStdout: os.Stdout,
|
||||||
|
SyncStderr: os.Stderr,
|
||||||
//Logger: logger,
|
//Logger: logger,
|
||||||
})
|
})
|
||||||
//defer client.Kill()
|
//defer client.Kill()
|
||||||
|
|
Loading…
Reference in New Issue