[Fix] Support passing args to logger (#17425)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2025-04-30 08:06:58 -07:00
committed by GitHub
parent 39317cf42b
commit da4e7687b5
13 changed files with 75 additions and 79 deletions
@@ -191,9 +191,9 @@ class GrammarConfig:
if model_with_warn is not None and any_whitespace:
logger.info_once(
f"{model_with_warn} model detected, consider setting "
"`disable_any_whitespace` to prevent runaway generation "
"of whitespaces.")
"%s model detected, consider setting `disable_any_whitespace` to prevent runaway generation of whitespaces.", # noqa: E501
model_with_warn,
)
# Validate the schema and raise ValueError here if it is invalid.
# This is to avoid exceptions in model execution, which will crash
# the engine worker process.