remove logging hack, not necessary with newer python versions

This commit is contained in:
Olivier R-D
2015-03-23 13:29:03 +01:00
parent 4b9317368d
commit 0c8db9c302
5 changed files with 13 additions and 16 deletions

View File

@@ -33,9 +33,8 @@ class TimeoutException(Exception):
class ParserUtils(object):
def __init__(self, logLevel=logging.WARN):
def __init__(self):
self.logger = logging.getLogger(__name__)
self.logger.setLevel(logLevel)
def parse(self, data):
"""
@@ -194,11 +193,10 @@ class SecondaryMonitor(Thread):
"""
Monitor data from secondary port and send programs to robot
"""
def __init__(self, host, logLevel=logging.WARN, parserLogLevel=logging.WARN):
def __init__(self, host):
Thread.__init__(self)
self.logger = logging.getLogger(self.__class__.__name__)
self.logger.setLevel(logLevel)
self._parser = ParserUtils(parserLogLevel)
self._parser = ParserUtils()
self._dict = {}
self._dictLock = Lock()
self.host = host