mirror of https://github.com/fail2ban/fail2ban
ENH: use format string rather than concatination on log message
parent
94a7609501
commit
916649119e
|
@ -220,7 +220,7 @@ class Filter(JailThread):
|
||||||
|
|
||||||
def addBannedIP(self, ip):
|
def addBannedIP(self, ip):
|
||||||
if self.inIgnoreIPList(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()
|
unixTime = MyTime.time()
|
||||||
for i in xrange(self.failManager.getMaxRetry()):
|
for i in xrange(self.failManager.getMaxRetry()):
|
||||||
|
|
Loading…
Reference in New Issue