コード例 #1
0
ファイル: processes.py プロジェクト: EwoudSmeur/paparazzi
 def send_text(self):
     """
     -> Analyse an process output line to find a flag in it.
     -> Send the item by the sending queue object.
     -> Collect the flag found.
     """
     q_byte_array = self.subprocess.readAllStandardOutput()
     string = str(q_byte_array, encoding="utf-8").strip()
     for line in string.split("\n"):
         log, flag = cs.analyse_log_line(line)
         log_type = cs.PROCESS_MESSAGE_TYPE
         self.process_log_sent.emit(log, flag, log_type)
         if flag != cs.DEFAULT_FLAG:
             self.flags[flag] += 1
コード例 #2
0
 def send_text(self):
     """
     -> Analyse an process output line to find a flag in it.
     -> Send the item by the sending queue object.
     -> Collect the flag found.
     """
     q_byte_array = self.subprocess.readAllStandardOutput()
     string = str(q_byte_array, encoding="utf-8").strip()
     for line in string.split("\n"):
         log, flag = cs.analyse_log_line(line)
         log_type = cs.PROCESS_MESSAGE_TYPE
         self.process_log_sent.emit(log, flag, log_type)
         if flag != cs.DEFAULT_FLAG:
             self.flags[flag] += 1
コード例 #3
0
ファイル: processes.py プロジェクト: EwoudSmeur/paparazzi
 def write(self, line):
     log, flag = cs.analyse_log_line(line)
     log_type = cs.APPLICATION_MESSAGE_TYPE
     self.logger_log_sent.emit(log, flag, log_type)
コード例 #4
0
 def write(self, line):
     log, flag = cs.analyse_log_line(line)
     log_type = cs.APPLICATION_MESSAGE_TYPE
     self.logger_log_sent.emit(log, flag, log_type)