diff -r 1c8305764b3f -r cede78304992 slotUI/freeslot.py --- 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):