コード例 #1
0
ファイル: rpcinterface.py プロジェクト: Dgo-list/iq
    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))
コード例 #2
0
ファイル: rpcinterface.py プロジェクト: Camelsky/supervisor
    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))
コード例 #3
0
ファイル: rpcinterface.py プロジェクト: red-crown/supervisor
    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))