use warning rather than debug logging

This commit is contained in:
Richard Smith 2025-05-05 16:19:59 +01:00
parent 9e71019f2d
commit 7d6ce1864a
2 changed files with 5 additions and 4 deletions

View file

@ -22,9 +22,10 @@ import itertools
import os import os
import pathlib import pathlib
import platform import platform
import logging
from .version import __version__ from .version import __version__
logger = logging.getLogger(__name__)
MODULE = pathlib.Path(__file__).parent MODULE = pathlib.Path(__file__).parent
def raylib_library_path(): def raylib_library_path():
@ -54,9 +55,9 @@ ffi.cdef(open(MODULE / "raylib_modified.h").read().replace('RLAPI ', ''))
try: try:
raylib_fname = raylib_library_path() raylib_fname = raylib_library_path()
rl = ffi.dlopen(raylib_fname) 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: except Exception as e:
print(e) logger.exception(e)
LIGHTGRAY =( 200, 200, 200, 255 ) LIGHTGRAY =( 200, 200, 200, 255 )
GRAY =( 130, 130, 130, 255 ) GRAY =( 130, 130, 130, 255 )

View file

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