- Replace print statements with logger.error() and logger.debug() 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 debug 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