def get_log_for_pid(pid):
 found_pid = False
 pid_str = (' PID: %s ' % pid)
 for line in fileinput.input(glob.glob((static.DEBUG_FILE + '*'))):
  if (pid_str in line):
   (yield line)
   found_pid = True
  elif (found_pid and (' PID: ' not in line)):
   (yield line)
  else:
   found_pid = False

def get_log_for_pid ( pid ) : found_pid = False pid_str = ( ' PID: %s ' % pid ) for line in fileinput . input ( glob . glob ( ( static . DEBUG_FILE + '*' ) ) ) : if ( pid_str in line ) : ( yield line ) found_pid = True elif ( found_pid and ( ' PID: ' not in line ) ) : ( yield line ) else : found_pid = False
fetches the logs from the debug log file for a given starcluster run by pid .