From bccca4935a9bd254a7c7a9f889d13d7bab9f0fdd Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 10 Dec 2021 12:32:33 +0100 Subject: [PATCH] Forward stdout and stderr from plugin to tusd --- cmd/tusd/cli/hooks/plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tusd/cli/hooks/plugin.go b/cmd/tusd/cli/hooks/plugin.go index bd97c25..3b766e3 100644 --- a/cmd/tusd/cli/hooks/plugin.go +++ b/cmd/tusd/cli/hooks/plugin.go @@ -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()