mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-22 16:25:02 +08:00
Make the httpx logger less annoying when Transformers v5 is installed (#30480)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
3a3b06ee70
commit
97a042f3bc
@ -229,6 +229,11 @@ def suppress_logging(level: int = logging.INFO) -> Generator[None, Any, None]:
|
|||||||
# guaranteed by the Python GIL.
|
# guaranteed by the Python GIL.
|
||||||
_configure_vllm_root_logger()
|
_configure_vllm_root_logger()
|
||||||
|
|
||||||
|
# Transformers uses httpx to access the Hugging Face Hub. httpx is quite verbose,
|
||||||
|
# so we set its logging level to WARNING when vLLM's logging level is INFO.
|
||||||
|
if envs.VLLM_LOGGING_LEVEL == "INFO":
|
||||||
|
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||||
|
|
||||||
logger = init_logger(__name__)
|
logger = init_logger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user