Unverified Commit f09c5feb authored by Tyler Michael Smith's avatar Tyler Michael Smith Committed by GitHub
Browse files

Change warning in get_current_vllm_config to report caller's line number (#31855)


Signed-off-by: default avatarTyler Michael Smith <tlrmchlsmth@gmail.com>
parent 1b8af957
......@@ -1444,7 +1444,9 @@ def get_current_vllm_config() -> VllmConfig:
# in ci, usually when we test custom ops/modules directly,
# we don't set the vllm config. In that case, we set a default
# config.
logger.warning("Current vLLM config is not set.")
# Use stack level 2 so the log contains the line of the caller,
# so it's easier to track down the source of the warning.
logger.warning("Current vLLM config is not set.", stacklevel=2)
return VllmConfig()
return _current_vllm_config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment