mirror of https://github.com/portainer/portainer
feat(exec): add DEBUG statement when validating license (#3191)
parent
42d4e1e11c
commit
646038cd0f
|
@ -4,6 +4,7 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"log"
|
||||
"os/exec"
|
||||
"path"
|
||||
"runtime"
|
||||
|
@ -193,6 +194,7 @@ func validateLicense(binaryPath, licenseKey string) ([]string, error) {
|
|||
|
||||
err := licenseCheckProcess.Run()
|
||||
if err != nil {
|
||||
log.Printf("[DEBUG] [exec,extension] [message: unable to run extension process] [err: %s]", err)
|
||||
return nil, errors.New("Invalid extension license key")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue