- Log parsing improvements were totally wrong. Removed

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@88 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.6
Cyril Jaquier 2005-03-08 21:08:16 +00:00
parent 36571c2ba9
commit 10d0070d42
1 changed files with 2 additions and 2 deletions

View File

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