@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 92e7562a99
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 8, 20:15 UTC

[Bugfix] Suppress non-TTY color output on the process name part of the log (#29714)

Signed-off-by: Tsukasa OI <floss_llm@irq.a4lg.com>

Tsukasa OI committed Feb 6, 2026 at 03:47 UTC 92e7562a994038c904fea859d90462c7e84a3246
1 file changed +6 -1
vllm/utils/system_utils.py
+6 -1
@@ -179,7 +179,12 @@ def set_process_title(
179
180 def _add_prefix(file: TextIO, worker_name: str, pid: int) -> None:
181 """Add colored prefix to file output for log decoration."""
182 - if envs.NO_COLOR:
182 + is_tty = hasattr(file, "isatty") and file.isatty()
183 + if (
184 + envs.NO_COLOR
185 + or envs.VLLM_LOGGING_COLOR == "0"
186 + or (envs.VLLM_LOGGING_COLOR != "1" and not is_tty)
187 + ):
188 prefix = f"({worker_name} pid={pid}) "
189 else:
190 prefix = f"{CYAN}({worker_name} pid={pid}){RESET} "