Commit graph

7 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
Pavel Kulyov
77239a0e96
Fix dynamic raylib loading on Windows (#50) 2021-10-29 15:29:40 +01:00
richard
ec752bdab7 refactor pyray into separate module 2021-10-08 04:47:58 +01:00
richard
316f0bb1e4 fix dynamic to import exactly the same as static 2021-10-04 16:20:18 +01:00
richard
50c2fb12e2 QOL docs, colors, version number, example imports 2021-10-04 15:56:29 +01:00
electronstudio
9e17046408 improve docs, make clear different APIs and static/dynamic 2021-10-03 23:34:09 +01:00
electronstudio
81819a133a separate static and dynamic libraries completely 2021-10-03 21:21:59 +01:00
Renamed from raylib/dynamic/__init__.py (Browse further)