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/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
build.py * fix hard-coded path in Windows build. (#174) 2025-05-21 12:30:20 +01:00
build_multi.sh generate h files on linux and then use them on windows 2021-10-16 20:46:52 +01:00
build_multi_linux.sh generate h files on linux and then use them on windows 2021-10-16 20:46:52 +01:00
build_multi_rpi_nox.sh generate h files on linux and then use them on windows 2021-10-16 20:46:52 +01:00
colors.py add some legacy #defines 2022-06-23 17:18:22 +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
glfw3.h.modified Sdl backend (#140) 2024-11-19 12:05:28 +00:00
physac.h.modified add @victorfisac version of Physac 2025-05-03 19:40:15 +01:00
py.typed Adds py.typed for typing support according to pep 561 (#135) 2024-11-17 01:19:19 +00:00
raygui.h.modified Sdl backend (#140) 2024-11-19 12:05:28 +00:00
raylib.h.modified Sdl backend (#140) 2024-11-19 12:05:28 +00:00
raymath.h.modified Sdl backend (#140) 2024-11-19 12:05:28 +00:00
rlgl.h.modified fix how regex inserts underscore in function names with '2d' and '3d' (#149) 2024-11-19 12:24:58 +00:00
version.py QOL docs, colors, version number, example imports 2021-10-04 15:56:29 +01:00