api.py 文件源码

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

项目:nokia-deployer 作者: nokia 项目源码 文件源码
def log_message(self, format, *args):
        code = args[1]
        # Logging HTTP 200 responses is super verbose
        if code == '200':
            return
        # But any non 200 reponse is suspicious and should be logger
        logger.info(
            "%s %s\n" % (
                self.client_address[0], format % args
            )
        )

# TODO: do not spawn the API ourselves ; instead, create an application.wsgi file defining
# the WSGI app and let Apache or some other webserver serve it
# TODO: or at least, use a better webserver than the standard WSGIServer
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号