Пример #1
0
    def emit_log(self, rec):
        CCJob.emit_log(self, rec)
        if not self.cc:
            return
        if not self.task_uid:
            return

        # send reply to task client too
        self.send_feedback(
            log_level = rec.levelname,
            service_type = self.service_name,
            job_name = self.job_name,
            log_msg = rec.getMessage(),
            log_time = rec.created,
            log_pid = rec.process,
            log_line = rec.lineno,
            log_function = rec.funcName)