mirror of https://github.com/portainer/portainer
refactor(exec): enable extension debugging output
parent
8a7a73fe84
commit
f44d3f836d
|
@ -4,6 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
@ -201,6 +202,8 @@ func validateLicense(binaryPath, licenseKey string) ([]string, error) {
|
||||||
|
|
||||||
func (manager *ExtensionManager) startExtensionProcess(extension *portainer.Extension, binaryPath string) error {
|
func (manager *ExtensionManager) startExtensionProcess(extension *portainer.Extension, binaryPath string) error {
|
||||||
extensionProcess := exec.Command(binaryPath, "-license", extension.License.LicenseKey)
|
extensionProcess := exec.Command(binaryPath, "-license", extension.License.LicenseKey)
|
||||||
|
extensionProcess.Stdout = os.Stdout
|
||||||
|
extensionProcess.Stderr = os.Stderr
|
||||||
err := extensionProcess.Start()
|
err := extensionProcess.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue