[Misc]fix logger which does not take effects in patches (#7402)

### What this PR does / why we need it?
This PR fixes the logger initialization in patches so that the log info
can be displayed as expected.

### Does this PR introduce _any_ user-facing change?
No.

- vLLM version: v0.17.0
- vLLM main:
4497431df6

---------

Signed-off-by: Angazenn <supperccell@163.com>
This commit is contained in:
Angazenn
2026-03-18 17:13:12 +08:00
committed by GitHub
parent 1ff9e3f25f
commit ec34bf0062
5 changed files with 4 additions and 14 deletions

View File

@@ -22,11 +22,9 @@
import os
from vllm.config.model import ModelConfig
from vllm.logger import init_logger
from vllm.logger import logger
from vllm.platforms import current_platform
logger = init_logger(__name__)
_original_verify_quantization = getattr(ModelConfig, "_verify_quantization", None)
_original_verify_cuda_graph = getattr(ModelConfig, "_verify_cuda_graph", None)