logs.py 文件源码

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

项目:pylm-registry 作者: nfqsolutions 项目源码 文件源码
def send(self, text):
        """
        Send a log line to the registry

        :param text: Text of the log line
        """
        arguments = {
            'cluster': self.cluster,
        }
        client = HTTPClient()
        client.fetch('{}/logs?{}'.format(
            self.uri, parse.urlencode(arguments)),
            method='POST',
            body=text
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号