Logo Search packages:      
Sourcecode: fail2ban version File versions  Download package

def logreader::logreader::LogReader::isModified (   self  ) 

Checks if the log file has been modified using os.stat().

Definition at line 95 of file logreader.py.

00095                           :
            """ Checks if the log file has been modified using os.stat().
            """
            try:
                  self.logStats = os.stat(self.logPath)
                  if self.lastModTime == self.logStats.st_mtime:
                        return False
                  else:
                        logSys.debug(self.logPath+" has been modified")
                        self.lastModTime = self.logStats.st_mtime
                        return True
            except OSError:
                  logSys.error("Unable to get stat on "+self.logPath)
                  return False
      
      def setFilePos(self, file):


Generated by  Doxygen 1.6.0   Back to index