You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to logging in __init__.py, set load message to debug (#171)
* 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]: commaai/openpilot#35076
* use warning rather than debug logging
---------
Co-authored-by: Richard Smith <github@electronstudio.co.uk>
0 commit comments