ENH: use format string rather than concatination on log message

This commit is contained in:
Daniel Black 2013-12-09 23:07:42 +11:00
parent 94a7609501
commit 916649119e

View file

@ -220,7 +220,7 @@ class Filter(JailThread):
def addBannedIP(self, ip):
if self.inIgnoreIPList(ip):
logSys.warning('Requested to manually ban an ignored IP ' + ip + '. User knows best. Proceeding to ban it.')
logSys.warning('Requested to manually ban an ignored IP %s. User knows best. Proceeding to ban it.' % ip)
unixTime = MyTime.time()
for i in xrange(self.failManager.getMaxRetry()):