From 10d0070d425817e3c6eafb10368b14e12528842c Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Tue, 8 Mar 2005 21:08:16 +0000 Subject: [PATCH] - Log parsing improvements were totally wrong. Removed git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@88 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- logreader/logreader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logreader/logreader.py b/logreader/logreader.py index fc9bda0c..5eb4cf6d 100644 --- a/logreader/logreader.py +++ b/logreader/logreader.py @@ -118,7 +118,7 @@ class LogReader: """ ipList = dict() logFile = self.openLogFile() - self.setFilePos(logFile) + #self.setFilePos(logFile) for line in logFile.readlines(): failList = self.findFailure(line) for element in failList: @@ -134,7 +134,7 @@ class LogReader: ipList[ip] = (ipList[ip][0]+1, unixTime) else: ipList[ip] = (1, unixTime) - self.lastPos = logFile.tell() + #self.lastPos = logFile.tell() logFile.close() return ipList