Skip to content

Commit 4973cd6

Browse files
authored
fix(python): output a warning for .venv activation errors (#368)
fix: surface venv activation errors as warnings instead of debug logs
1 parent 017f8d3 commit 4973cd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/shared/clients.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (c *ClientFactory) InitSDKConfig(ctx context.Context, dirPath string) error
232232
// Activate Python virtual environment if present, so hook scripts
233233
// can resolve the venv's Python and installed packages.
234234
if activated, err := runtime.ActivatePythonVenvIfPresent(c.Fs, c.Os, dirPath); err != nil {
235-
c.IO.PrintDebug(ctx, "failed to activate Python virtual environment: %s", err)
235+
c.IO.PrintWarning(ctx, "Failed to activate Python virtual environment: %s", err)
236236
} else if activated {
237237
c.IO.PrintDebug(ctx, "Activated Python virtual environment .venv")
238238
}

0 commit comments

Comments
 (0)