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