"vscode:/vscode.git/clone" did not exist on "5a3f1eb62fb8a5d114001488832f8bd7f93df5b8"
Unverified Commit d1f569b1 authored by Harry Mellor's avatar Harry Mellor Committed by GitHub
Browse files

Fix call to `logger.info_once` (#17416)


Signed-off-by: default avatarHarry Mellor <19981378+hmellor@users.noreply.github.com>
parent 13698db6
...@@ -191,9 +191,9 @@ class GrammarConfig: ...@@ -191,9 +191,9 @@ class GrammarConfig:
if model_with_warn is not None and any_whitespace: if model_with_warn is not None and any_whitespace:
logger.info_once( logger.info_once(
"%s model detected, consider setting " f"{model_with_warn} model detected, consider setting "
"`disable_any_whitespace` to prevent runaway generation " "`disable_any_whitespace` to prevent runaway generation "
"of whitespaces.", model_with_warn) "of whitespaces.")
# Validate the schema and raise ValueError here if it is invalid. # Validate the schema and raise ValueError here if it is invalid.
# This is to avoid exceptions in model execution, which will crash # This is to avoid exceptions in model execution, which will crash
# the engine worker process. # the engine worker process.
......
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