* Switch to logging in `__init__.py`, set load message to debug - Replace print statements with logger.error() and logger.warning() calls. - Follow best practices by using a module-specific logger via getLogger(__name__). - Use parameterized log messages to avoid unnecessary string formatting. - Change the "RAYLIB STATIC x.x.x LOADED" message from direct stderr output to logger warning level. Motivation: In [commaai/openpilot#35076][openpilot-issue], we experienced noisy test outputs because the RAYLIB STATIC message is printed unnecessarily, cluttering stderr. This change allows library consumers to control the visibility of this message. [openpilot-issue]: https://github.com/commaai/openpilot/issues/35076 * use warning rather than debug logging --------- Co-authored-by: Richard Smith <github@electronstudio.co.uk> |
||
---|---|---|
.. | ||
__init__.py | ||
__init__.pyi | ||
build.py | ||
build_multi.sh | ||
build_multi_linux.sh | ||
build_multi_rpi_nox.sh | ||
colors.py | ||
defines.py | ||
enums.py | ||
glfw3.h.modified | ||
physac.h.modified | ||
py.typed | ||
raygui.h.modified | ||
raylib.h.modified | ||
raymath.h.modified | ||
rlgl.h.modified | ||
version.py |