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:
Sebastian Spaeth 2012-02-06 17:40:02 +01:00
parent a242b985bf
commit 7f22d89872

View File

@ -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 ''