From 7454096199fcc79a63d2e1aa413e12881966cabd Mon Sep 17 00:00:00 2001 From: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Date: Thu, 19 Mar 2026 15:04:59 -0400 Subject: [PATCH] [Log] Log once in local node by default (#37568) Signed-off-by: yewentao256 --- vllm/logger.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vllm/logger.py b/vllm/logger.py index e8aecead3..fde95662f 100644 --- a/vllm/logger.py +++ b/vllm/logger.py @@ -103,7 +103,6 @@ def _should_log_with_scope(scope: LogScope) -> bool: from vllm.distributed.parallel_state import is_local_first_rank return is_local_first_rank() - # default "process" scope: always log return True @@ -116,9 +115,7 @@ class _VllmLogger(Logger): `intel_extension_for_pytorch.utils._logger`. """ - def debug_once( - self, msg: str, *args: Hashable, scope: LogScope = "process" - ) -> None: + def debug_once(self, msg: str, *args: Hashable, scope: LogScope = "local") -> None: """ As [`debug`][logging.Logger.debug], but subsequent calls with the same message are silently dropped. @@ -127,7 +124,7 @@ class _VllmLogger(Logger): return _print_debug_once(self, msg, *args) - def info_once(self, msg: str, *args: Hashable, scope: LogScope = "process") -> None: + def info_once(self, msg: str, *args: Hashable, scope: LogScope = "local") -> None: """ As [`info`][logging.Logger.info], but subsequent calls with the same message are silently dropped. @@ -137,7 +134,7 @@ class _VllmLogger(Logger): _print_info_once(self, msg, *args) def warning_once( - self, msg: str, *args: Hashable, scope: LogScope = "process" + self, msg: str, *args: Hashable, scope: LogScope = "local" ) -> None: """ As [`warning`][logging.Logger.warning], but subsequent calls with