mirror of https://github.com/fail2ban/fail2ban
- Improved debug messages
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@96 a942ae1a-1317-0410-a47c-b1dcaea8d6050.6
parent
62feec3227
commit
6f6742266c
|
@ -109,10 +109,11 @@ class LogReader:
|
|||
if self.lastDate < self.getTime(line):
|
||||
self.logSys.debug("Date " + `self.lastDate` + " is " +
|
||||
"smaller than " + `self.getTime(line)`)
|
||||
self.logSys.debug("Log rotation detected")
|
||||
self.logSys.debug("Log rotation detected for " + self.logPath)
|
||||
self.lastPos = 0
|
||||
|
||||
self.logSys.debug("Setting file position to " + `self.lastPos`)
|
||||
self.logSys.debug("Setting file position to " + `self.lastPos` + " for "
|
||||
+ self.logPath)
|
||||
file.seek(self.lastPos)
|
||||
|
||||
def getFailures(self):
|
||||
|
@ -123,6 +124,7 @@ class LogReader:
|
|||
and the latest failure time.
|
||||
"""
|
||||
ipList = dict()
|
||||
self.logSys.debug(self.logPath)
|
||||
logFile = self.openLogFile()
|
||||
self.setFilePos(logFile)
|
||||
lastLine = ''
|
||||
|
|
Loading…
Reference in New Issue