Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

   

   def log_match(syslog=0True)

      if syslog=1 :      

          x= syslog_config.log_config_values(syslog=1)

      if x==1

         return _log_match(syslog=1)

      elif x==2

         return _log_match(syslog=0)

      elif x==3 

         // how to check here?????? Recursion??

         syslog_return= _log_match(syslog=1)

        if syslog_return:

          _log_match(syslog=0)

        else:

          return syslog_return

      else:

         _msg= "Log file to check not set"

         PtlLogMatchError(rc=1, rv=False, msg=_msg)        



  def _log_match(syslog=0True)

      if syslog=1

         Self.logutil=PBSLogUtils(syslog=1)

         self.init_logfile_path(syslog=1true)

         lines lines = self.log_lines(syslog=true)

      rv = self.logutils.match_msg(syslog=1true)



  def init_logfile_path(self, syslog=0True)

     if syslog= 1

        self.logfile = syslog_utils.path_to_syslog()

...

def log_lines(self, syslog=0True)

  if syslog = 1

      filename = syslog_utils.path_to_syslog()

...

Class PBSLogUtils(object)

     syslog=0

     _init_(self, syslog=0):

         if self.syslog_value = 1

             syslog=1

             tm_re = syslog_config.time_syslog()


     def convert_date_time(fmt)

...