slotUI/freeslot.py

changeset 77
cede78304992
parent 57
c2e2695c92fe
child 86
79fb119cf3c3
--- a/slotUI/freeslot.py	Sun Dec 11 13:54:14 2011 +0100
+++ b/slotUI/freeslot.py	Sun Dec 11 17:34:40 2011 +0100
@@ -10,11 +10,12 @@
 
 # define loglevels
 DEBUG = 20
+LOGLEVEL = 20
 def log(level, msg):
     """
     Logging output function
     """
-    print msg
+    if level <= LOGLEVEL: print msg
 
 class SerialCommunicator():
     def __init__(self, device, speed):

mercurial