Commits

Leonard Ritter committed 4412d6e

shutting up loader

Comments (0)

Files changed (1)

 import traceback
 import sys
 import os
+import logging
 
 __all__ = [
     '_ffi',
     'SDLError',
 ]
 
+log = logging.getLogger('SDL')
+
 class SDLError(Exception):
     pass
 
             pass
         except:
             traceback.print_exc()
-    print("ERROR: unable to find SDL2 library")
+    log.error("unable to find SDL2 library")
 
 def wrapstr(result):
     if result:
 def lookup(name):
     if hasattr(_LIB, name):
         return getattr(_LIB, name)
-    print("SDL warning: function",name,"missing.")
+    log.warning("function",name,"missing.")
     return None 
     
 def check_error():