Commit graph

18 commits

Author SHA1 Message Date
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
Richard Smith
c9a5ec09e3 give useful error when native DLL isnt found 2024-10-01 00:48:58 +01:00
richard
7394f79da5 add some legacy #defines 2022-06-23 17:18:22 +01:00
richard
ec752bdab7 refactor pyray into separate module 2021-10-08 04:47:58 +01:00
richard
50c2fb12e2 QOL docs, colors, version number, example imports 2021-10-04 15:56:29 +01:00
electronstudio
81819a133a separate static and dynamic libraries completely 2021-10-03 21:21:59 +01:00
electronstudio
5128d185e9 version bump 2021-10-03 19:00:41 +01:00
richard
cb7a574555 change how PyRay detects pointers 2021-09-23 11:15:51 +01:00
richard
4b3f4433a3 new license 2021-08-30 09:18:29 +01:00
richard
b0a8448573 type hints for raylib.static 2021-08-28 13:35:55 +01:00
richard
89335a416d version bump 2021-06-28 14:02:59 +01:00
Richard Smith
78cf5cc344 update linux binaries to 3.5 (note using new glibc so may not work on old linuxes) 2021-01-16 18:32:38 +00:00
Richard Smith
6d0f77936e update DLLs to 2.5 releases 2019-06-05 16:59:07 +01:00
Richard Smith
b6b9054d0d split project into static and dynamic modules 2019-05-24 04:31:48 +01:00
Richard Smith
ad0420408c fix pypi packages 2019-05-21 22:21:41 +01:00
Richard Smith
f40f6aff04 separate mac linux builds 2019-05-21 21:20:01 +01:00
Richard Smith
790ff3fcf6 nonworking dynamic bindings 2019-05-21 17:51:54 +01:00
Richard Smith
a703659c9d initial 2019-05-21 10:56:31 +01:00