def _tailProcessLog(self, name, offset, length, channel): group, process = self._getGroupAndProcess(name) logfile = getattr(process.config, '%s_logfile' % channel) if logfile is None or not os.path.exists(logfile): return ['', 0, False] return tailFile(logfile, int(offset), int(length))
def _tailProcessLog(self, name, offset, length, channel): group, process = self._getGroupAndProcess(name) logfile = getattr(process.config, '%s_logfile' % channel) if logfile is None or not os.path.exists(logfile): return ['', 0, False] return tailFile(logfile, int(offset), int(length))
def _tailProcessLog(self, name, offset, length, channel): group, process = self._getGroupAndProcess(name) if process is None: raise RPCError(Faults.BAD_NAME, name) logfile = getattr(process.config, "%s_logfile" % channel) if logfile is None or not os.path.exists(logfile): return ["", 0, False] return tailFile(logfile, int(offset), int(length))