mirror of https://github.com/fail2ban/fail2ban
- Do not exit on exception. Continue and wait for an unhandled exception
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@176 a942ae1a-1317-0410-a47c-b1dcaea8d6050.5
parent
7e0e005e24
commit
9548edaff0
|
@ -89,7 +89,7 @@ class LogReader:
|
||||||
fileHandler = open(self.logPath)
|
fileHandler = open(self.logPath)
|
||||||
except OSError:
|
except OSError:
|
||||||
logSys.error("Unable to open "+self.logPath)
|
logSys.error("Unable to open "+self.logPath)
|
||||||
sys.exit(-1)
|
|
||||||
return fileHandler
|
return fileHandler
|
||||||
|
|
||||||
def isModified(self):
|
def isModified(self):
|
||||||
|
@ -99,7 +99,6 @@ class LogReader:
|
||||||
self.logStats = os.stat(self.logPath)
|
self.logStats = os.stat(self.logPath)
|
||||||
except OSError:
|
except OSError:
|
||||||
logSys.error("Unable to get stat on "+self.logPath)
|
logSys.error("Unable to get stat on "+self.logPath)
|
||||||
sys.exit(-1)
|
|
||||||
|
|
||||||
if self.lastModTime == self.logStats.st_mtime:
|
if self.lastModTime == self.logStats.st_mtime:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue