From 916649119ef124e952f50e6c27cf3003897f15f9 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 9 Dec 2013 23:07:42 +1100 Subject: [PATCH] ENH: use format string rather than concatination on log message --- server/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/filter.py b/server/filter.py index 66d3fbf0..0ef756d2 100644 --- a/server/filter.py +++ b/server/filter.py @@ -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()):