[Feature][Frontend] Control the log level of request JSON body using env var (#60630)

Signed-off-by: talora <talora@nvidia.com>
This commit is contained in:
Talor Abramovich
2026-10-15 11:07:19 +00:00
committed by GitHub
parent 365aaa77bd
commit 81e42c9987
4 changed files with 28 additions and 8 deletions
+6
View File
@@ -331,6 +331,7 @@ if TYPE_CHECKING:
VLLM_GPU_NIC_PCIE_MAPPING: str = ""
VLLM_NIC_SELECTION_VARS: str = ""
VLLM_ENABLE_HPC_OPS: bool = False
VLLM_REQUEST_BODY_LOG_LEVEL: str = "DEBUG"
def get_default_cache_root():
@@ -2264,6 +2265,10 @@ environment_variables: dict[str, Callable[[], Any]] = {
"VLLM_SKIP_VERSION_SUFFIX": lambda: bool(
int(os.getenv("VLLM_SKIP_VERSION_SUFFIX", "0"))
),
# Logging level for request JSON body.
"VLLM_REQUEST_BODY_LOG_LEVEL": lambda: os.getenv(
"VLLM_REQUEST_BODY_LOG_LEVEL", "DEBUG"
).upper(),
}
@@ -2423,6 +2428,7 @@ def compile_factors() -> dict[str, object]:
"NO_COLOR",
"VLLM_SKIP_VERSION_SUFFIX",
"FORCE_COLOR",
"VLLM_REQUEST_BODY_LOG_LEVEL",
}
from vllm.config.utils import normalize_value