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 committed Jan 11, 2025
1 parent 8e5ace8 commit 63ecd82
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 63ecd82

Please sign in to comment.