chore(internal/releaser): add further log messages

This commit is contained in:
Felix Wiedmann
2019-06-17 22:45:49 +02:00
parent 8efde63865
commit f65b90975f
3 changed files with 12 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
"os"
"strings"
log "github.com/sirupsen/logrus"
"golang.org/x/oauth2"
)
@@ -27,6 +28,8 @@ func GetAccessToken(providerName string) (string, error) {
var exists bool
envName := fmt.Sprintf("%s_ACCESS_TOKEN", strings.ToUpper(providerName))
log.Debugf("check if %s environment variable is set", envName)
if token, exists = os.LookupEnv(envName); !exists {
return "", fmt.Errorf("Could not find %s in the enviroment variables. Please check if it is set", envName)
}