notification.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:logscan 作者: magedu 项目源码 文件源码
def send_mail(self):
        threading.Thread(target=self._send_mail, name='send-mail-real').start()
        while not self.__event.is_set():
            with self.__cond:
                self.__cond.wait()
                if 'mail' in self.message.type:
                    try:
                        self.__mail_queue.put(self.message, timeout=1)
                    except Full:
                        logging.error('mail queue is full')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号