fix type: logging.info --> logging.INFO
We mean the (numeric) logging level here and not the info() function. logger.isEnabledFor() takes the logging level as argument, obviously. This was a stupid typo that failed under python3. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
a242b985bf
commit
7f22d89872
@ -269,7 +269,7 @@ class UIBase(object):
|
||||
|
||||
def connecting(self, hostname, port):
|
||||
"""Log 'Establishing connection to'"""
|
||||
if not self.logger.isEnabledFor(logging.info): return
|
||||
if not self.logger.isEnabledFor(logging.INFO): return
|
||||
displaystr = ''
|
||||
hostname = hostname if hostname else ''
|
||||
port = "%s" % port if port else ''
|
||||
|
Loading…
Reference in New Issue
Block a user