Skip to content

Commit

Permalink
feat: add log level to environment variables sent to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms authored and pascalbreuninger committed Jan 13, 2025
1 parent 468632d commit d588d8b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/provider/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import (
"strings"

"github.com/loft-sh/devpod/pkg/config"
log2 "github.com/loft-sh/log"
)

const (
// general
DEVPOD = "DEVPOD"
DEVPOD_OS = "DEVPOD_OS"
DEVPOD_ARCH = "DEVPOD_ARCH"
DEVPOD = "DEVPOD"
DEVPOD_OS = "DEVPOD_OS"
DEVPOD_ARCH = "DEVPOD_ARCH"
DEVPOD_LOG_LEVEL = "DEVPOD_LOG_LEVEL"

// workspace
WORKSPACE_ID = "WORKSPACE_ID"
Expand Down Expand Up @@ -183,6 +185,7 @@ func GetBaseEnvironment(context, provider string) map[string]string {
retVars[PROVIDER_CONTEXT] = context
providerFolder, _ := GetProviderDir(context, provider)
retVars[PROVIDER_FOLDER] = filepath.ToSlash(providerFolder)
retVars[DEVPOD_LOG_LEVEL] = log2.Default.GetLevel().String()
return retVars
}

Expand Down

0 comments on commit d588d8b

Please sign in to comment.