feat(exec): add DEBUG statement when validating license (#3191)

pull/3202/head
Anthony Lapenna 5 years ago committed by GitHub
parent 42d4e1e11c
commit 646038cd0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"errors" "errors"
"log"
"os/exec" "os/exec"
"path" "path"
"runtime" "runtime"
@ -193,6 +194,7 @@ func validateLicense(binaryPath, licenseKey string) ([]string, error) {
err := licenseCheckProcess.Run() err := licenseCheckProcess.Run()
if err != nil { 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") return nil, errors.New("Invalid extension license key")
} }

Loading…
Cancel
Save