Skip to content

Commit 7d6ce18

Browse files
use warning rather than debug logging
1 parent 9e71019 commit 7d6ce18

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dynamic/raylib/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
import os
2323
import pathlib
2424
import platform
25+
import logging
2526
from .version import __version__
2627

27-
28+
logger = logging.getLogger(__name__)
2829
MODULE = pathlib.Path(__file__).parent
2930

3031
def raylib_library_path():
@@ -54,9 +55,9 @@ def so_name():
5455
try:
5556
raylib_fname = raylib_library_path()
5657
rl = ffi.dlopen(raylib_fname)
57-
print('LOADED DYNAMICALLY SHARED LIB {} {}'.format(__version__, raylib_fname))
58+
logger.warning('LOADED DYNAMICALLY SHARED LIB {} {}'.format(__version__, raylib_fname))
5859
except Exception as e:
59-
print(e)
60+
logger.exception(e)
6061

6162
LIGHTGRAY =( 200, 200, 200, 255 )
6263
GRAY =( 130, 130, 130, 255 )

raylib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
import cffi
3232
from .version import __version__
3333

34-
logger.debug("RAYLIB STATIC %s LOADED", __version__)
34+
logger.warning("RAYLIB STATIC %s LOADED", __version__)

0 commit comments

Comments
 (0)