Merge pull request #1 from electronstudio/use-logging

use warning rather than debug logging
This commit is contained in:
Cameron Clough 2025-06-03 12:20:53 +01:00 committed by GitHub
commit 11795b76ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -22,9 +22,10 @@ import itertools
import os
import pathlib
import platform
import logging
from .version import __version__
logger = logging.getLogger(__name__)
MODULE = pathlib.Path(__file__).parent
def raylib_library_path():
@ -54,9 +55,9 @@ ffi.cdef(open(MODULE / "raylib_modified.h").read().replace('RLAPI ', ''))
try:
raylib_fname = raylib_library_path()
rl = ffi.dlopen(raylib_fname)
print('LOADED DYNAMICALLY SHARED LIB {} {}'.format(__version__, raylib_fname))
logger.warning('LOADED DYNAMICALLY SHARED LIB {} {}'.format(__version__, raylib_fname))
except Exception as e:
print(e)
logger.exception(e)
LIGHTGRAY =( 200, 200, 200, 255 )
GRAY =( 130, 130, 130, 255 )

View file

@ -31,4 +31,4 @@ from raylib.defines import *
import cffi
from .version import __version__
logger.debug("RAYLIB STATIC %s LOADED", __version__)
logger.warning("RAYLIB STATIC %s LOADED", __version__)