This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
raylib-python-cffi/dynamic/raylib
Cameron Clough 8d5d810925
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]: https://github.com/commaai/openpilot/issues/35076

* use warning rather than debug logging

---------

Co-authored-by: Richard Smith <github@electronstudio.co.uk>
2025-06-04 15:55:41 +01:00
..
__init__.py Switch to logging in __init__.py, set load message to debug (#171) 2025-06-04 15:55:41 +01:00
__init__.pyi hack stub files because enum from Physac isn't recognised by raylib header parser 2025-05-27 19:54:53 +01:00
colors.py separate static and dynamic libraries completely 2021-10-03 21:21:59 +01:00
defines.py add @victorfisac version of Physac 2025-05-03 19:40:15 +01:00
enums.py add docstrings for structs and enums, fixes issue #159 2025-05-03 18:06:27 +01:00
libraylib.dylib update bundled dynamic libs to 5.5 2024-11-19 15:43:06 +00:00
libraylib.so update bundled dynamic libs to 5.5 2024-11-19 15:43:06 +00:00
py.typed include py.typed in MANIFEST rather than setup 2024-11-17 01:24:57 +00:00
raylib.dll update bundled dynamic libs to 5.5 2024-11-19 15:43:06 +00:00
raylib_modified.h fix dynamic raylib header being different from static header by making it a link 2024-11-24 13:18:36 +00:00
version.py QOL docs, colors, version number, example imports 2021-10-04 15:56:29 +01:00