Uh oh!
There was an error while loading. Please reload this page.
Route non-interactive library messages through loggers - #14682
Route non-interactive library messages through loggers#14682wunianze666-netizen wants to merge 2 commits into
Conversation
HuggingFaceDocBuilderDev
commented
Sep 1, 2026
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DN6
commented
Sep 8, 2026
@wunianze666-netizen None of the tests files added here are needed. This is a straightforward change. Could you please remove them. |
wunianze666-netizen
commented
Sep 8, 2026
The dedicated test files were removed in 0c2125c. I rechecked the current PR diff today: it now contains only the four production source files, with no test files remaining. The focused source compilation and Ruff checks also pass. |
This consolidates the non-interactive library messages approved in #14479 into one change.
What changed
VectorQuantizerremap initialization details through its module logger atINFO.WARNING.WARNING.The message text is preserved where practical. The LongCat
Warning:prefix is omitted because the log record now carries the warning severity.Fixes#14479.
Validation
After maintainer review, I removed the three dedicated regression-test additions in
0c2125ce; the production changes remain limited to the four library files above.ruff checkpassed for all 4 changed source files.ruff format --checkreports all 4 changed source files formatted.python -m compileall -qpassed for all 4 changed source files.PYTHONPATH=src PYTHONUTF8=1 python utils/check_ai.pypassed.git diff --check upstream/mainpassed.AI-assisted contribution
I used Codex to help audit the print sites and implement the changes. I read the Coding with AI agents guide, contributor guide, philosophy document, and the relevant model, pipeline, testing, and code-style references.
Final self-review
print-to-module-logger conversion with unchanged control flow.Before submitting
cc @DN6