We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e614ab7 commit 467a4f9Copy full SHA for 467a4f9
vllm/engine/arg_utils.py
@@ -1327,7 +1327,13 @@ def create_engine_config(
1327
import ray
1328
1329
ray_runtime_env = ray.get_runtime_context().runtime_env
1330
- logger.info("Using ray runtime env: %s", ray_runtime_env)
+ # Avoid logging sensitive environment variables
1331
+ sanitized_env = ray_runtime_env.to_dict() if ray_runtime_env else {}
1332
+ if "env_vars" in sanitized_env:
1333
+ sanitized_env["env_vars"] = {
1334
+ k: "***" for k in sanitized_env["env_vars"]
1335
+ }
1336
+ logger.info("Using ray runtime env (env vars redacted): %s", sanitized_env)
1337
1338
# Get the current placement group if Ray is initialized and
1339
# we are in a Ray actor. If so, then the placement group will be
0 commit comments