refactor(exec): enable extension debugging output

dbg11042019
Anthony Lapenna 2019-04-11 10:06:19 +12:00
parent 8a7a73fe84
commit f44d3f836d
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"errors"
"os"
"os/exec"
"path"
"runtime"
@ -201,6 +202,8 @@ func validateLicense(binaryPath, licenseKey string) ([]string, error) {
func (manager *ExtensionManager) startExtensionProcess(extension *portainer.Extension, binaryPath string) error {
extensionProcess := exec.Command(binaryPath, "-license", extension.License.LicenseKey)
extensionProcess.Stdout = os.Stdout
extensionProcess.Stderr = os.Stderr
err := extensionProcess.Start()
if err != nil {
return err